【温故知新C/C++/opencv】取址符&||cv::groupRectangles||引用与值传递

本文详细介绍了C/C++中的取址符&,包括在变量、函数参数及`cv::groupRectangles`函数中的应用。同时讨论了引用的概念和特点,对比了引用与指针的区别,并提供了实例解析。
摘要由CSDN通过智能技术生成

cv::groupRectangles

 

void groupRectangles (vector<Rect>& rectList, int groupThreshold, double eps=0.2 )

Groups the object candidate rectangles

Parameters:
  • rectListThe 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 /texttt{eps}/rightarrow +/inf  , 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 {
<
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值