dilate a shell while keeping openings
1 vue (au cours des 30 derniers jours)
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)
Image Analyst le 7 Sep 2023
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.