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.

3-D Volumetric Image Processing

Filter, segment, and perform other image processing operations on 3-D volumetric data

Perform pixel operations, local filtering, morphology, and other image processing, on 3-D data sets.


Volume ViewerView volumetric image


expand all

volshowDisplay volume
dicomreadRead DICOM image
dicomreadVolumeConstruct volume from directory of DICOM images
imbinarizeBinarize 2-D grayscale image or 3-D volume by thresholding
niftiinfoRead metadata from NIfTI file
niftiwriteWrite volume to file using NIfTI format
niftireadRead NIfTI image
imabsdiffAbsolute difference of two images
imaddAdd two images or add constant to image
imdivideDivide one image into another or divide image by constant
immultiplyMultiply two images or multiply image by constant
imsubtractSubtract one image from another or subtract constant from image
imregisterIntensity-based image registration
imregdemonsEstimate displacement field that aligns two 2-D or 3-D images
imresize3Resize 3-D volumetric intensity image
imrotate3Rotate 3-D volumetric grayscale image
imwarpApply geometric transformation to image
fspecial3Create predefined 3-D filter
histeqEnhance contrast using histogram equalization
imadjustnAdjust intensity values in N-D volumetric image
imboxfilt33-D box filtering of 3-D images
imfilterN-D filtering of multidimensional images
imgaussfilt33-D Gaussian filtering of 3-D images
imhistmatchnAdjust histogram of N-D image to match histogram of reference image
integralBoxFilter33-D box filtering of 3-D integral images
integralImage3Calculate 3-D integral image
medfilt33-D median filtering
bwareaopenRemove small objects from binary image
bwconncompFind connected components in binary image
bwmorph3Morphological operations on binary volume
imbothatBottom-hat filtering
imcloseMorphologically close image
imdilateDilate image
imerodeErode image
imopenMorphologically open image
imreconstructMorphological reconstruction
imregionalmaxRegional maxima
imregionalminRegional minima
imtophatTop-hat filtering
watershedWatershed transform
activecontour Segment image into foreground and background using active contours (snakes)
bfscoreContour matching score for image segmentation
bwselect3Select objects in binary image
diceSørensen-Dice similarity coefficient for image segmentation
edge3Find edges in 3-D intensity volume
gradientweightCalculate weights for image pixels based on image gradient
graydiffweightCalculate weights for image pixels based on grayscale intensity difference
imgradient3Find 3-D gradient magnitude and direction of images
imgradientxyzFind the directional gradients of a 3-D image
imhistHistogram of image data
imsegfmmBinary image segmentation using Fast Marching Method
imsegkmeans3K-means clustering based volume segmentation
jaccardJaccard similarity coefficient for image segmentation
regionpropsMeasure properties of image regions
superpixels33-D superpixel oversegmentation of 3-D image


imref3d Reference 3-D image to world coordinates
affine3d 3-D affine geometric transformation
strelMorphological structuring element
offsetstrelMorphological offset structuring element


Compute 3-D Superpixels of Input Volumetric Intensity Image

This example shows how to convert 3-D MRI data into a grayscale intensity image of superpixels.

Segment Lungs from 3-D Chest Scan and Calculate Lung Volume

This example shows how to perform a 3-D segmentation using active contours, and how to view the results using the Volume Viewer app.

Register Multimodal 3-D Medical Images

This example shows how to align two volumetric images using automatic intensity-based image registration.