NmsSort

Function Usage

A protected member function that filters duplicate objects based on the confidence level. It is invoked for internal use only. Do not use it.

Prototype

void NmsSort(std::vector<ObjDetectInfo>& objInfos, float iouThresh, IOUMethod method = UNION);

Parameter Description

Parameter

Input/Output

Description

objInfos

Output

Object corner points to be filtered

iouThresh

Input

Filtering threshold

method

Input

IoU is calculated as follows:
  • MAX: The overlapped area is divided by the larger one of the two areas.
  • MIN: The overlapped area is divided by the smaller one of the two areas.
  • UNION: The overlapped area is divided by the union of the two areas.
  • DIOU: The value equals the value of UNION minus the IoU of the distances.