volshow
Display volume
Syntax
Description
Numeric Array
creates a vol = volshow(V)Volume object that displays the 3-D grayscale, RGB, or binary
volume V. You can rotate and zoom in and out on the display
interactively using the mouse. Use vol to query and modify properties
of the Volume object after you create the object. For a list of
properties, see Volume Properties.
specifies one or more property values that modify the appearance of the volume using
name-value arguments. For example,
vol = volshow(V,Name=Value)volshow(V,RenderingStyle="Isosurface") displays the 3-D volume
V and sets the rendering style as "Isosurface".
For a list of properties, see Volume Properties.
Blocked Image Volume
Since R2023a
creates a bVol = volshow(bim)BlockedVolume object that displays the 3-D blocked image
bim. You can rotate and zoom in and out on the display
interactively using the mouse. Use bVol to query and modify
properties of the BlockedVolume object after you create the object. For a
list of properties, see BlockedVolume Properties.
specifies one or more property values that modify the appearance of the blocked volume
using name-value arguments. For example, bVol = volshow(bim,Name=Value)ResolutionLevel="coarse"
specifies the resolution level to display as the coarsest resolution level. For a list of
properties, see BlockedVolume Properties.
Note
Medical Imaging Toolbox™ extends the functionality of the volshow
(Image Processing Toolbox™) function to display a medicalVolume (Medical Imaging Toolbox) object in the patient coordinate system. For more
information, see volshow (Medical Imaging Toolbox).
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Tips
To refresh a volume display efficiently, update properties of the
Volumeobject returned byvolshowinstead of repeatedly calling thevolshowfunction. For example, refresh the volume and overlay data by updating theDataandOverlayDataproperties, respectively, using dot notation. Updating an existing display avoids the memory and performance cost of creating a new parent viewer. Updating the data also preserves other settings that control the appearance of the scene, such as camera properties and the background color. This table compares approaches for updating the volume data in avolshowdisplay.More Efficient Less Efficient V = volshow(volIntensity); % Binarize the volume volBinary = volIntensity > 10; % Update the display to show the binary volume V.Data = volBinary;
volshow(volIntensity); % Binarize the volume volBinary = volIntensity > 10; % Create a new viewer and display the binary volume volshow(volBinary)
Version History
Introduced in R2018bSee Also
Volume
Viewer | Volume Properties | BlockedVolume Properties | viewer3d | Surface | isosurface | slice | obliqueslice
Topics
- Display Volume Using Cinematic Rendering
- Display Interior Labels by Clipping Volume Planes
- Display Interior Labels by Adjusting Volume Overlay Properties
- Remove Objects from Volume Display Using 3-D Scissors
- Display Large 3-D Images Using Blocked Volume Visualization
- Display Translucent Volume with Advanced Light Scattering







