This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Volume Viewer

View volumetric data and labeled volumetric data

Description

The Volume Viewer app lets you view 3-D volumetric data and 3-D labeled volumetric data. Using this app, you can view the data as a volume or as plane slices. You can also view the data as a maximum intensity projection or an isosurface. Using the Rendering Editor component you can manipulate opacity to see the structures in the volume that you want to see and make transparent those structures in the volume that you do not want to see.

Open the Volume Viewer App

  • MATLAB® toolstrip: Open the Apps tab, under Image Processing and Computer Vision, click the Volume Viewer app icon.

  • MATLAB command prompt: Enter volumeViewer.

Examples

expand all

  1. Load a labeled volume into the workspace.

    load(fullfile(toolboxdir('images'),'imdata','BrainMRILabeled','labels','label_001.mat'));
    
  2. Open the labeled volume in the Volume Viewer. Use the 'VolumeType' parameter to identify the volume as a labeled volume.

    volumeViewer(label,'VolumeType','labels')

Related Examples

Programmatic Use

expand all

volumeViewer opens a volume visualization app.

volumeViewer(V) loads the intensity volume V into the app. V is a scalar-valued m-by-n-by-p image of class logical, uint8, uint16, uint32, int8, int16, int32, single, or double.

volumeViewer(V,L) loads the intensity volume V and the labeled volume L into the Volume Viewer. L is a scalar-valued m-by-n-by-p image of class categorical, uint8, uint16, uint32, int8, int16, int32, single, or double

volumeViewer(___,'VolumeType',vtype) loads the volumetric data into the app, where 'VolumeType' defines the type of volume being loaded. vtype can be either 'Volume' or 'Labels'. If the volume is of class categorical, the default VolumeType is 'Labels'. For volumes of any other class, the default VolumeType is 'Volume'. If you specify both an intensity volume and a labeled volume, the Volume Viewer ignores this name-value pair

volumeViewer(___,'ScaleFactors',sfactors) loads the volumetric data into the app, where 'ScaleFactors' specifies the scale factors used to rescale volumes. 'ScaleFactors' is a 1-by-3 positive numeric array of the form [x y z], where the values are scale factors applied in the x, y, and z directions. The default value is [1 1 1]. If 'VolumeType' is 'Labels', the Volume Viewer ignores this name-value pair.

volumeViewer close closes all open Volume Viewer apps.

See Also

Functions

Introduced in R2017a