How to determine if a segment lies on a polygon?
1 回表示 (過去 30 日間)
古いコメントを表示
I mean, i have to check if a segment (who changes in time) is entirely inside a polygon or not. Is there any function in Matlab who does that?
0 件のコメント
回答 (1 件)
uu tsi
2016 年 10 月 7 日
you can use inpolygon function to check if a point in a polygon.
3 件のコメント
Image Analyst
2016 年 10 月 7 日
Use a for loop. I doubt you have "a lot" of points. How many? Hundreds of millions? If you have just a few tens of thousands, it will be very fast. If you have millions of points, then you might consider image processing techniques instead.
参考
カテゴリ
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!