Table of Contents

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

bboxes IEnumerable<Rect>

a set of bounding boxes to apply NMS.

scores IEnumerable<float>

a set of corresponding confidences.

scoreThreshold float

a threshold used to filter boxes by score.

nmsThreshold float

a threshold used in non maximum suppression.

indices int[]

the kept indices of bboxes after NMS.

eta float

a coefficient in adaptive threshold formula

topK int

if >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

bboxes IEnumerable<Rect2d>

a set of bounding boxes to apply NMS.

scores IEnumerable<float>

a set of corresponding confidences.

scoreThreshold float

a threshold used to filter boxes by score.

nmsThreshold float

a threshold used in non maximum suppression.

indices int[]

the kept indices of bboxes after NMS.

eta float

a coefficient in adaptive threshold formula

topK int

if >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

bboxes IEnumerable<RotatedRect>

a set of bounding boxes to apply NMS.

scores IEnumerable<float>

a set of corresponding confidences.

scoreThreshold float

a threshold used to filter boxes by score.

nmsThreshold float

a threshold used in non maximum suppression.

indices int[]

the kept indices of bboxes after NMS.

eta float

a coefficient in adaptive threshold formula

topK int

if >0, keep at most @p top_k picked indices.