How to decrease the number of points in a shape?
古いコメントを表示
Hi, I would like to know if it is possible to decrease the number of points (x,y) in a shape , using Matlab, in order to obtain the minimum number of points needed to plot/describe exactly the same shape. How to automate this process via Matlab? Thanks
2 件のコメント
Massimo Zanetti
2016 年 9 月 27 日
Is it you shape convex? In this case your shape just coincide with its convex hull.
採用された回答
その他の回答 (2 件)
Image Analyst
2016 年 9 月 28 日
0 投票
You want what's called "the minimum perimeter polygon". I think this paper discussing it will help you : http://dip.sun.ac.za/~hanno/tw444/lesings/lesing_19.pdf
It will also be interesting to try Massimo's clever algorithm. Adjust "tol" to adjust the amount of departure from a straight line you'd like to tolerate.
Image Analyst
2022 年 6 月 2 日
0 投票
reducepoly
Reduce density of points in ROI using Ramer–Douglas–Peucker algorithm
Syntax
Description
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!