morphological opening of volumetric data.

1 view (last 30 days)
i understand the concept of opening of 2D binary images but never used such opening on volumetric date as in the code below. please explain
nhood = ones([3 3 3]);
bw = imopen(bw,nhood); % bw is binary volumetric MRI data (28 slices)

Accepted Answer

Image Analyst
Image Analyst on 27 Nov 2015
What's your question? A morphological opening is a local min followed by a local max. If you have a question, please ask it.
  3 Comments
Image Analyst
Image Analyst on 27 Nov 2015
The remaining 3 is the number of "planes" or "slices" in the third dimension. For an analogy, the first two would describe a sheet of paper 3 cm wide by 3 cm long, and the next 3 would mean that there are 3 sheets of paper stacked on top of each other in the third, or "z", direction. So essentially you're telling it to look at every one of the 27 voxels in a 3-by-3-by-3 cube. If you set any of those voxels to 0 or false, then it would tell it so skip considering that/those voxel(s) when computing the local min and local max.

Sign in to comment.

More Answers (1)

Thorsten
Thorsten on 27 Nov 2015
Edited: Thorsten on 27 Nov 2015
For 3D data you need a 3D morphological structuring element, given by a 3D matrix. You create a block of ones of height, width and depth = 3 using
ones([3 3 3])

Community Treasure Hunt

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

Start Hunting!