ioa#

ioa(boxes1, boxes2)[source]#

Computes pairwise intersection-over-area between box collections.

Intersection-over-area (ioa) between two boxes box1 and box2 is defined as their intersection area over box2’s area. Note that ioa is not symmetric, that is, IOA(box1, box2) != IOA(box2, box1).

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 N boxes.

Returns:

A numpy array with shape [N, M] representing pairwise ioa scores.

Return type:

np.ndarray