Revision history [back]

I can't paint the circle into image after using Hough transform :(

Hi everybody ! I used Hough transform to detect circle and then I will paint the circle into my input image ( tennis ball ) depend on those parameter that Hough issued ( center,radius ). Here is my code :

            Mat src1 = imread("banhtennis.jpg");
Mat src2 = src1.clone();
Mat gray,canny;

cvtColor(src1,gray,CV_BGR2GRAY);
Canny(gray,canny,20,30,3,false);
vector<Vec3f> circles;