Morphological function with flat structuring element on 3D images

1 回表示 (過去 30 日間)
Duc Fehr
Duc Fehr 2013 年 11 月 22 日
回答済み: Duc Fehr 2013 年 11 月 26 日
Hello,
I am using a morphological function (imopen, imclose,....) on a 3D binary volume. I use these functions with a flat structuring element (for example, strel('disk',3)). How are the opening and closing performed on the 3D image. I understand how these functions are applied to 2D images, but since I use a flat (2D) structuring element, how is the function applied? Each slice at a time? What directions?
Thank you in advance for the help.
Duc

回答 (2 件)

Sean de Wolski
Sean de Wolski 2013 年 11 月 22 日
X = false(11,11,11);
X(6,6,6) = true;
Xd = imdilate(X,strel('disk',3))
implay(Xd);
With three-d ones block:
Xd = imdilate(X,ones(5,5,3))
implay(Xd);

Duc Fehr
Duc Fehr 2013 年 11 月 26 日
Thank you I'll check it out.

Community Treasure Hunt

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

Start Hunting!

Translated by