ioa#

ioa(boxlist1: NpBoxList, boxlist2: NpBoxList) ndarray[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
  • boxlist1 (BoxList) – BoxList holding N boxes.

  • boxlist2 (BoxList) – BoxList holding M boxes.

Returns

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

Return type

np.ndarray