deepof.utils.polygon_area_numba
- deepof.utils.polygon_area_numba(vertices: ndarray) float
Calculate the area of a single polygon given its vertices.
- Parameters:
vertices (np.ndarray) – Array of shape [Npoints, 2] containing the (x, y) coordinates of the polygon’s vertices.
- Returns:
Area of the polygon.
- Return type:
float