Table of Contents

Method GroupRectangles

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GroupRectangles(IList<Rect>, int, double)

Groups the object candidate rectangles.

public static void GroupRectangles(IList<Rect> rectList, int groupThreshold, double eps = 0.2)

Parameters

rectList IList<Rect>

Input/output vector of rectangles. Output vector includes retained and grouped rectangles.

groupThreshold int

Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.

eps double

GroupRectangles(IList<Rect>, out int[], int, double)

Groups the object candidate rectangles.

public static void GroupRectangles(IList<Rect> rectList, out int[] weights, int groupThreshold, double eps = 0.2)

Parameters

rectList IList<Rect>

Input/output vector of rectangles. Output vector includes retained and grouped rectangles.

weights int[]
groupThreshold int

Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.

eps double

Relative difference between sides of the rectangles to merge them into a group.

GroupRectangles(IList<Rect>, int, double, out int[], out double[])

Groups the object candidate rectangles.

public static void GroupRectangles(IList<Rect> rectList, int groupThreshold, double eps, out int[] weights, out double[] levelWeights)

Parameters

rectList IList<Rect>
groupThreshold int
eps double
weights int[]
levelWeights double[]

GroupRectangles(IList<Rect>, out int[], out double[], int, double)

Groups the object candidate rectangles.

public static void GroupRectangles(IList<Rect> rectList, out int[] rejectLevels, out double[] levelWeights, int groupThreshold, double eps = 0.2)

Parameters

rectList IList<Rect>
rejectLevels int[]
levelWeights double[]
groupThreshold int
eps double