decreased the lower canny threshold in HoughCircles, helps to detect some circles...
authorVadim Pisarevsky <no@email>
Mon, 22 Nov 2010 12:16:38 +0000 (12:16 +0000)
committerVadim Pisarevsky <no@email>
Mon, 22 Nov 2010 12:16:38 +0000 (12:16 +0000)
modules/imgproc/src/hough.cpp

index bd0fc36..60b3be9 100644 (file)
@@ -817,7 +817,7 @@ icvHoughCirclesGradient( CvMat* img, float dp, float min_dist,
     CvSeqReader reader;
 
     edges = cvCreateMat( img->rows, img->cols, CV_8UC1 );
-    cvCanny( img, edges, MAX(canny_threshold/2,1), canny_threshold, 3 );
+    cvCanny( img, edges, MAX(canny_threshold/5,1), canny_threshold, 3 );
 
     dx = cvCreateMat( img->rows, img->cols, CV_16SC1 );
     dy = cvCreateMat( img->rows, img->cols, CV_16SC1 );