Method NMSBoxes
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
NMSBoxes(IEnumerable<Rect>, IEnumerable<float>, float, float, out int[], float, int)
Performs non maximum suppression given boxes and corresponding scores.
public static void NMSBoxes(IEnumerable<Rect> bboxes, IEnumerable<float> scores, float scoreThreshold, float nmsThreshold, out int[] indices, float eta = 1, int topK = 0)
Parameters
bboxesIEnumerable<Rect>a set of bounding boxes to apply NMS.
scoresIEnumerable<float>a set of corresponding confidences.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
etafloata coefficient in adaptive threshold formula
topKintif
>0, keep at most @p top_k picked indices.
NMSBoxes(IEnumerable<Rect2d>, IEnumerable<float>, float, float, out int[], float, int)
Performs non maximum suppression given boxes and corresponding scores.
public static void NMSBoxes(IEnumerable<Rect2d> bboxes, IEnumerable<float> scores, float scoreThreshold, float nmsThreshold, out int[] indices, float eta = 1, int topK = 0)
Parameters
bboxesIEnumerable<Rect2d>a set of bounding boxes to apply NMS.
scoresIEnumerable<float>a set of corresponding confidences.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
etafloata coefficient in adaptive threshold formula
topKintif
>0, keep at most @p top_k picked indices.
NMSBoxes(IEnumerable<RotatedRect>, IEnumerable<float>, float, float, out int[], float, int)
Performs non maximum suppression given boxes and corresponding scores.
public static void NMSBoxes(IEnumerable<RotatedRect> bboxes, IEnumerable<float> scores, float scoreThreshold, float nmsThreshold, out int[] indices, float eta = 1, int topK = 0)
Parameters
bboxesIEnumerable<RotatedRect>a set of bounding boxes to apply NMS.
scoresIEnumerable<float>a set of corresponding confidences.
scoreThresholdfloata threshold used to filter boxes by score.
nmsThresholdfloata threshold used in non maximum suppression.
indicesint[]the kept indices of bboxes after NMS.
etafloata coefficient in adaptive threshold formula
topKintif
>0, keep at most @p top_k picked indices.