Main Content

Volume Viewer

体积数据视图和标签体积数据

Description

TheVolume Viewerapp 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 theAppstab, underImage Processing and Computer Vision, click the Volume Viewer app icon.

  • MATLAB command prompt: EntervolumeViewer.

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

volumeVieweropens a volume visualization app.

volumeViewer(V)loads the intensity volumeVinto the app.Vis a scalar-valuedm-by-n-by-pimage of classlogical,uint8,uint16,uint32,int8,int16,int32,single, ordouble.

volumeViewer(V,L)loads the intensity volumeVand the labeled volumeLinto the Volume Viewer.Lis a scalar-valuedm-by-n-by-pimage of classcategorical,uint8,uint16,uint32,int8,int16,int32,single, ordouble

volumeViewer(___,'VolumeType',vtype)loads the volumetric data into the app, where'VolumeType'defines the type of volume being loaded.vtypecan be either'Volume'or'Labels'. If the volume is of classcategorical, the defaultVolumeTypeis'Labels'. For volumes of any other class, the defaultVolumeTypeis'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 thex,y, andzdirections. The default value is[1 1 1]. If'VolumeType'is'Labels', the Volume Viewer ignores this name-value pair.

volumeViewer closecloses all open Volume Viewer apps.

Version History

Introduced in R2017a