general/tools/misc/
enclosed.pro
FUNCTION: w = enclosed(x,y [cx,cy],NCIRCS=NCIRCS,COUNT=COUNT) PURPOSE: Returns the indices of a set of x,y points that are inside a contour. INPUT: x,y: data set of points. (x and y must be the same dimension) cx,cy: vector of x,y pairs that describe a closed contour. if cx,cy are not provided then the cursor is used to obtain it. OUTPUT: W: Array of indices of x (& y) that are within the contour cx,cy. NCIRCS: Same dimension as x (& y); integer array giving the number of times each point is encircled. COUNT: Size of array W
Routines
File attributes
Modification date: | Thu Feb 13 16:43:14 2014 |
Lines: | 35 |