필터 지우기
필터 지우기

dilate a shell while keeping openings

조회 수: 2 (최근 30일)
Mehri Mehrnia
Mehri Mehrnia 2023년 9월 7일
댓글: Image Analyst 2023년 9월 8일

I have a shell which is not concrete. while dilating, the opennings are going to be closed. how can I solve this problem. I've included main and dilated view (it's a 3D in fact)

logical(imerode(shell,strel('disk',voxel)))

답변 (1개)

Image Analyst
Image Analyst 2023년 9월 7일
Not sure what the "problem" is. You didn't say. Yes, dilation will make gaps closer, of course. Do you not want the gaps to get smaller? Be very explicit in what the "problem" is and what you'd like as an output.
Perhaps you want to use bwmorph with the 'thicken' option which will dilate but not connect previously unconnected pixels.
Perhaps you want to look into edge linking options. I've attached a few demos for you.
  댓글 수: 2
Mehri Mehrnia
Mehri Mehrnia 2023년 9월 7일
I want to preserve the opennings of the shell(it's 3D), bwmorph works on 2D images and bwmorph3 does not have "thicken"
Image Analyst
Image Analyst 2023년 9월 8일
Call them and ask why it's not there. Ask for an alternative to thicken in 3-D.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by