How to remove connected components inside polygon in binary image
Mostrar comentarios más antiguos
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

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
