function faster than inpolygon()?

Is there a function faster than inpolygon()? or another way to do the intersection ? because it sometimes takes too much time (the program sill busy forever ).
Thank you.

2 comentarios

KSSV
KSSV el 3 de Jul. de 2018
intersection? How you are using inpolygon?
here is the code to understand what I mean :
[A,x,y,I]=geoimread('Cutted1.tif')
rx = shape(1).X(1:end-1);
ry = shape(1).Y(1:end-1);
[X,Y] = meshgrid(x,y);
mask =inpolygon(X,Y,rx,ry);
result= mask.*A;

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Jul. de 2018

Comentada:

el 3 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by