Browse image slices
sliceViewer
is a viewer for exploring grayscale and RGB
volumes.
Use sliceViewer
to look at individual slices in the volumes. When it
opens, sliceViewer
displays the middle image in the stack in the direction
specified by sliceDirection
. Use the slider to navigate through the volume
and view individual slices.
The sliceViewer
object supports properties, object functions, and
events that you can use to customize its appearance and functioning. The
sliceViewer
can send notifications when certain events occur, such as the
slider moving. For more information, see Events.
Note
By default, clicking and dragging the mouse in the slice displayed interactively changes their brightness and contrast, a technique called window/level. Dragging the mouse horizontally from left to right changes the contrast. Dragging the mouse vertically up and down changes the brightness. Holding down the Ctrl key when clicking and dragging the mouse accelerates changes. Holding down the Shift key while clicking and dragging the mouse slows the rate of change. Press these keys before clicking and dragging. To control this behavior, use the DisplayRangeInteraction property.
sliceViewer(
displays the grayscale or RGB
volume S
)S
in a figure. The figure includes a slider that you can use
to view individual slices of the volume.
sliceViewer(___,
sets
properties using
name-value pairs. For example, Name,Value
)sliceViewer(S,'Colormap',cmap)
creates a
sliceViewer
object specifying the colormap used to display the
volume. You can specify multiple name-value pairs. Enclose each property name in single
quotes.
sv = sliceViewer(___)
returns a
sliceViewer
object, sv
, with properties that can
be used to control visualization of the volume. Use input arguments from any of the
previous syntaxes.
addlistener | Create event listener bound to event source |
getAxesHandle | Get handle to axes in Slice Viewer |