intersection#

intersection(boxlist1: NpBoxList, boxlist2: NpBoxList) ndarray[source]#

Compute pairwise intersection areas between boxes.

Parameters
  • boxlist1 (BoxList) – BoxList holding N boxes.

  • boxlist2 (BoxList) – BoxList holding M boxes.

Returns

A numpy array with shape [N*M] representing pairwise intersection area.

Return type

np.ndarray