opencv 霍夫變換檢測圓cvHoughCircles

來源:互聯網
上載者:User
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 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.