| CvDnnNMSBoxes Method (IEnumerableRotatedRect, IEnumerableSingle, Single, Single, Int32, Single, Int32) |
Performs non maximum suppression given boxes and corresponding scores.
Namespace:
OpenCvSharp.Dnn
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void NMSBoxes(
IEnumerable<RotatedRect> bboxes,
IEnumerable<float> scores,
float scoreThreshold,
float nmsThreshold,
out int[] indices,
float eta = 1f,
int topK = 0
)
Public Shared Sub NMSBoxes (
bboxes As IEnumerable(Of RotatedRect),
scores As IEnumerable(Of Single),
scoreThreshold As Single,
nmsThreshold As Single,
<OutAttribute> ByRef indices As Integer(),
Optional eta As Single = 1F,
Optional topK As Integer = 0
)
public:
static void NMSBoxes(
IEnumerable<RotatedRect>^ bboxes,
IEnumerable<float>^ scores,
float scoreThreshold,
float nmsThreshold,
[OutAttribute] array<int>^% indices,
float eta = 1f,
int topK = 0
)
static member NMSBoxes :
bboxes : IEnumerable<RotatedRect> *
scores : IEnumerable<float32> *
scoreThreshold : float32 *
nmsThreshold : float32 *
indices : int[] byref *
?eta : float32 *
?topK : int
(* Defaults:
let _eta = defaultArg eta 1f
let _topK = defaultArg topK 0
*)
-> unit
Parameters
- bboxes
- Type: System.Collections.GenericIEnumerableRotatedRect
a set of bounding boxes to apply NMS. - scores
- Type: System.Collections.GenericIEnumerableSingle
a set of corresponding confidences. - scoreThreshold
- Type: SystemSingle
a threshold used to filter boxes by score. - nmsThreshold
- Type: SystemSingle
a threshold used in non maximum suppression. - indices
- Type: SystemInt32
the kept indices of bboxes after NMS. - eta (Optional)
- Type: SystemSingle
a coefficient in adaptive threshold formula - topK (Optional)
- Type: SystemInt32
if `>0`, keep at most @p top_k picked indices.
See Also