How to remove connected components inside polygon in binary image
Afficher commentaires plus anciens
I have a set of images which I have already segmented and obtained theirs extern perimeter(the cornermask we can say). When the segmentation is perfect I get a perfect circle(or square, or another polygon, it's not always a circle); however when it's not perfect I get the extern perimeter and also some connected components inside, like in the image below.
My question is how can I remove those connected components inside?
I tried with erosion but with no successfull result because too thin and I lose the extern perimeter.
I need them to be removed because after I use regionfill and I need to pass it an exact cornermask

Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
