morphological opening of volumetric data.

1 visualización (últimos 30 días)
Muhammad Shoaib
Muhammad Shoaib el 27 de Nov. de 2015
Comentada: Image Analyst el 27 de Nov. de 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)

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

Thorsten
Thorsten el 27 de Nov. de 2015
Editada: Thorsten el 27 de Nov. de 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])

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by