- mmcv.ops.points_in_polygons(points: torch.Tensor, polygons: torch.Tensor) → torch.Tensor¶
Judging whether points are inside polygons, which is used in the ATSS assignment for the rotated boxes.
It should be noted that when the point is just at the polygon boundary, the judgment will be inaccurate, but the effect on assignment is limited.
Return the result with the shape of (B, M), 1 indicates that the point is inside the polygon, 0 indicates that the point is outside the polygon.
- Return type