opencv 霍夫变换检测圆cvHoughCircles

CVAPI(CvSeq*) cvHoughCircles( CvArr* image, void* circle_storage,
                              int method, double dp, double min_dist,
                              double param1 CV_DEFAULT(100),
                              double param2 CV_DEFAULT(100),
                              int min_radius CV_DEFAULT(0),
                              int max_radius CV_DEFAULT(0));

image  The 8-bit, single-channel, grayscale input image 


circles  The output vector of found circles.  Each vector is encoded as 3-element floating-point 
      vector    


method    Currently, the only implemented method is CV HOUGH GRADIENT, which is basically 21HT, 
      described in [25]. 


dp  The inverse ratio of the accumulator resolution to the image resolution.  For example, if dp=1, 
      the accumulator will have the same resolution as the input image, if dp=2 - accumulator will 
      have half as big width and height, etc 


minDist    Minimum distance between the centers of the detected circles.  If the parameter is too 
      small, multiple neighbor circles may be falsely detected in addition to a true one.  If it is too 
      large, some circles may be missed 



param1   The first method-specific parameter. in the case of CV HOUGH GRADIENT it is the higher 
      threshold of the two passed to cv::Canny edge detector (the lower one will be twice smaller) 


param2   The  second  method-specific  parameter.    in  the  case  of  CV HOUGH GRADIENT  it  is  the 
      accumulator threshold at the center detection stage. The smaller it is, the more false circles 
      may be detected.  Circles, corresponding to the larger accumulator values, will be returned 
      first 


minRadius     Minimum circle radius 


maxRadius     Maximum circle radius 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值