How can I simplify the polygon?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The polygon above is got after I shrank a rectangle. However, The meaningless branches are not desired. How can I remove them and split it into polygons that are independent to each other?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190059/image.jpeg)
2 commentaires
Réponses (1)
Ahmet Cecen
le 27 Avr 2018
Well purely speculating, assuming you have a binary image with those lines:
FilledPolygons = imfill(PolygonImage,'holes');
OnlyPolygonsFilled = FilledPolygons - PolygonImage;
OnlyPolygonEdges = edge(OnlyPolygonsFilled);
3 commentaires
Voir également
Catégories
En savoir plus sur Elementary Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!