How can I simplify the polygon?
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Ahmet Cecen
2018 年 4 月 27 日
Well purely speculating, assuming you have a binary image with those lines:
FilledPolygons = imfill(PolygonImage,'holes');
OnlyPolygonsFilled = FilledPolygons - PolygonImage;
OnlyPolygonEdges = edge(OnlyPolygonsFilled);
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Elementary Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!