cv::groupRectangles
-
void
groupRectangles
(vector<Rect>&
rectList, int
groupThreshold, double
eps=0.2
)
¶
-
Groups the object candidate rectangles
Parameters: - rectList – The input/output vector of rectangles. On output there will be retained and grouped rectangles
- groupThreshold – The minimum possible number of rectangles, minus 1, in a group of rectangles to retain it.
- eps – The relative difference between sides of the rectangles to merge them into a group
The function is a wrapper for a generic function partition() . It clusters all the input rectangles using the rectangle equivalence criteria, that combines rectangles that have similar sizes and similar locations (the similarity is defined by eps ). When eps=0 , no clustering is done at all. If , all the rectangles will be put in one cluster. Then, the small clusters, containing less than or equal to groupThreshold rectangles, will be rejected. In each other cluster the average rectangle will be computed and put into the output rectangle list.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
http://www.nowamagic.net/datastructures/ds_UsageOfAddressOperator.php
C语言中地址操作符&的使用
示例一
01 |
#include <stdio.h> |
02 |
int find( int *a); |
03 |
|
04 |
main() |
05 |
{ |