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 |
{ |
06 |
int b = 1; |

本文详细介绍了C/C++中的取址符&,包括在变量、函数参数及`cv::groupRectangles`函数中的应用。同时讨论了引用的概念和特点,对比了引用与指针的区别,并提供了实例解析。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



