skimage2.measure.points_in_poly#
- skimage2.measure.points_in_poly(points, verts)[source]#
Test whether points lie inside a polygon.
- Parameters:
- pointsarray_like of shape (K, 2)
Input points,
(x, y).- vertsarray_like of shape (L, 2)
Vertices of the polygon, sorted either clockwise or anti-clockwise. The first point may (but does not need to be) duplicated.
- Returns:
- maskndarray of shape (K,) and dtype bool
True if corresponding point is inside the polygon.
See also