Select all points inside a polygon to create a new matrix
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Martha
el 31 de Mzo. de 2014
Comentada: Martha
el 31 de Mzo. de 2014
Hi, I have a point cloud matrix x,y and I want to create a new matrix with all the points that are inside a polygon to create a new matrix with all the points that are inside a polygon.
Thank you in advance, Martha
0 comentarios
Respuesta aceptada
Walter Roberson
el 31 de Mzo. de 2014
Find the convex hull, and then you can use the vertices in poly2mask()
If you want the hull to be non-convex (e.g., to follow the points of a "star") then you have more difficulty in defining "inside".
Más respuestas (1)
Ver también
Categorías
Más información sobre Elementary Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!