intersection#
- intersection(boxes1, boxes2)[source]#
Compute pairwise intersection areas between boxes.
- Parameters
boxes1 (np.ndarray) – A numpy array with shape [N, 4] holding N boxes.
boxes2 (np.ndarray) – A numpy array with shape [M, 4] holding M boxes.
- Returns
A numpy array with shape [N*M] representing pairwise intersection area.
- Return type
np.ndarray