How do I perform 3-D erosion on volumetric image data with Image Processing Toolbox 5.0.1 (R14SP1)?
29 views (last 30 days)
Show older comments
I have a set of of binary images representing a volume. I would like to erode the volumetric image in 3 dimensions.
Accepted Answer
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);
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!