Select all points inside a polygon to create a new matrix
6 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have a point cloud matrix x,y and I want to create a new matrix with all the points that are inside a polygon to create a new matrix with all the points that are inside a polygon.
Thank you in advance, Martha
0 件のコメント
採用された回答
Walter Roberson
2014 年 3 月 31 日
Find the convex hull, and then you can use the vertices in poly2mask()
If you want the hull to be non-convex (e.g., to follow the points of a "star") then you have more difficulty in defining "inside".
その他の回答 (1 件)
参考
カテゴリ
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!