morphological opening of volumetric data.

8 vues (au cours des 30 derniers jours)
Muhammad Shoaib
Muhammad Shoaib le 27 Nov 2015
Commenté : Image Analyst le 27 Nov 2015
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)

Réponse acceptée

Image Analyst
Image Analyst le 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 commentaires
Muhammad Shoaib
Muhammad Shoaib le 27 Nov 2015
waiting for an answer . . .
Image Analyst
Image Analyst le 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.

Connectez-vous pour commenter.

Plus de réponses (1)

Thorsten
Thorsten le 27 Nov 2015
Modifié(e) : Thorsten le 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])

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by