deepof.utils.point_in_polygon_numba
- deepof.utils.point_in_polygon_numba(points: array, polygon: array) array
This function was generated by Perplexity.ai Check if a set of points is inside a polygon.
- Parameters:
points (np.ndarray) – An array of shape (M, 2) containing the coordinates of the points.
polygon (np.ndarray) – An array of shape (N, 2) containing the coordinates of the polygon vertices.
- Returns:
A boolean array of shape (M,) indicating whether each point is inside the polygon.
- Return type:
np.ndarray