points-in-poly

points_in_poly

skimage.measure.points_in_poly()

Test whether points lie inside a polygon.

Parameters:

points : (N, 2) array

Input points, (x, y).

verts : (M, 2) array

Vertices of the polygon, sorted either clockwise or anti-clockwise. The first point may (but does not need to be) duplicated.

Returns:

mask : (N,) array of bool

True if corresponding point is inside the polygon.

doc_scikit_image
2017-01-12 17:22:46
Comments
Leave a Comment

Please login to continue.