FilterByIou
Function Usage
Filters objects based on the IOU value.
Prototype
void FilterByIou(std::vector<DetectBox> dets, std::vector<DetectBox>& sortBoxes, float iouThresh, IOUMethod method = UNION);
void FilterByIou(std::vector<ObjectInfo> dets, std::vector<ObjectInfo>& sortBoxes, float iouThresh, IOUMethod method = UNION);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
dets |
Input |
DetectBox (central point)/ObjectInfo (corner point) to be filtered. |
sortBoxes |
Output |
Sorted array. |
iouThresh |
Input |
Filtering threshold. |
method |
Input |
IOU is calculated as follows:
|
Parent topic: Nms