Borrar filtros
Borrar filtros

How to determine if a segment lies on a polygon?

1 visualización (últimos 30 días)
MrEko4815162342
MrEko4815162342 el 7 de Oct. de 2016
Comentada: Image Analyst el 7 de Oct. de 2016
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?

Respuestas (1)

uu tsi
uu tsi el 7 de Oct. de 2016
you can use inpolygon function to check if a point in a polygon.
  3 comentarios
uu tsi
uu tsi el 7 de Oct. de 2016
you can try, the time is import or not?
Image Analyst
Image Analyst el 7 de Oct. de 2016
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by