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
rectListIList<Rect>Input/output vector of rectangles. Output vector includes retained and grouped rectangles.
groupThresholdintMinimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.
epsdouble
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
rectListIList<Rect>Input/output vector of rectangles. Output vector includes retained and grouped rectangles.
weightsint[]groupThresholdintMinimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.
epsdoubleRelative 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
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)