How do I perform 3-D erosion on volumetric image data with Image Processing Toolbox 5.0.1 (R14SP1)?

29 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
To perform three-dimensional erosion, use the Image Processing Toolbox function IMERODE.
For example, to erode the set of volumetric binary images "V" in 3-dimensions, perform the following steps:
1. Create a 3-dimensional structuring element
[xx,yy,zz] = ndgrid(-5:5);
nhood = sqrt(xx.^2 + yy.^2 + zz.^2) <= 5.0;
2. Execute the IMERODE function with the 3-D structuring element.
V2 = imerode(V,nhood);

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!