フィルターのクリア

How to determine if a segment lies on a polygon?

1 回表示 (過去 30 日間)
MrEko4815162342
MrEko4815162342 2016 年 10 月 7 日
コメント済み: Image Analyst 2016 年 10 月 7 日
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?

回答 (1 件)

uu tsi
uu tsi 2016 年 10 月 7 日
you can use inpolygon function to check if a point in a polygon.
  3 件のコメント
uu tsi
uu tsi 2016 年 10 月 7 日
you can try, the time is import or not?
Image Analyst
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 ExchangeElementary Polygons についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by