dilate a shell while keeping openings
2 次查看(过去 30 天)
显示 更早的评论
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)))
0 个评论
回答(1 个)
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 个评论
Image Analyst
2023-9-8
Call them and ask why it's not there. Ask for an alternative to thicken in 3-D.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!