imfill small but not big holes
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello!
I'm interested in measuring the area of the "bigger holes" in the middle of this image. Does anyone have an idea of how can I fill the smaller holes without filling the bigger ones? Is there any way to specify the size of the holes that you want to fill?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192114/image.jpeg)
Thanks in advanced.
Maria
1 commentaire
Rik
le 18 Juil 2018
You could use imfill to fill all holes, then compare with your original image to find all holes themselves, and loop (or arrayfun) through all holes to determine with regionprops which holes shouldn't have been filled.
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!