How can I simplify the polygon?
Mostra commenti meno recenti
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?

2 Commenti
Risposte (1)
Ahmet Cecen
il 27 Apr 2018
Well purely speculating, assuming you have a binary image with those lines:
FilledPolygons = imfill(PolygonImage,'holes');
OnlyPolygonsFilled = FilledPolygons - PolygonImage;
OnlyPolygonEdges = edge(OnlyPolygonsFilled);
3 Commenti
Tony Carl
il 27 Apr 2018
Ahmet Cecen
il 27 Apr 2018
You will need to clarify a bit more. Maybe show your actual data etc.
Tony Carl
il 27 Apr 2018
Categorie
Scopri di più su Elementary Polygons in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
