필터 지우기
필터 지우기

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 CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by