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!