Ask Your Question

Revision history [back]

Circle Detection

Hello! I try to get the center of circles using Hough Circle algoritm from https://github.com/Itseez/opencv/blob/master/samples/cpp/houghcircles.cpp but i need exactly coordinates .When i get those coordinates like this for( size_t i = 0; i < circles.size(); i++ ) { Vec3i c = circles[i]; cout<<c[0]&lt;&lt;" "&lt;<c[1]&lt;<endl;="" }="" it="" prints="" just="" the="" integer="" part.="" is="" there="" any="" posibility="" to="" get="" the="" center="" more="" precise(4="" decimals="" or="" more)?<="" p="">

Circle Detection

Hello! I try to get the center of circles using Hough Circle algoritm from https://github.com/Itseez/opencv/blob/master/samples/cpp/houghcircles.cpp but i need exactly coordinates .When i get those coordinates like this for( size_t i = 0; i < circles.size(); i++ ) { Vec3i c = circles[i]; cout<<c[0]&lt;&lt;" "&lt;<c[1]&lt;<endl;="" }="" it="" prints="" just="" the="" integer="" part.="" is="" there="" any="" posibility="" to="" get="" the="" center="" more="" precise(4="" decimals="" or="" more)?<="" p="">

Same question on SO: http://stackoverflow.com/questions/31672841/accuracy-of-the-center-with-hough-circle-transform

Circle Detection

Hello! I try to get the center of circles using Hough Circle algoritm from https://github.com/Itseez/opencv/blob/master/samples/cpp/houghcircles.cpp but i need exactly coordinates .When i get those coordinates like this for( size_t i = 0; i < circles.size(); i++ ) { Vec3i c = circles[i]; cout<<c[0]&lt;&lt;" "&lt;<c[1]&lt;<endl;="" }="" it="" prints="" just="" the="" integer="" part.="" is="" there="" any="" posibility="" to="" get="" the="" center="" more="" precise(4="" decimals="" or="" more)?<="" p="">

/// Edit FooBar: Same question on SO: http://stackoverflow.com/questions/31672841/accuracy-of-the-center-with-hough-circle-transform

Circle Detection

Hello! I try to get the center of circles using Hough Circle algoritm from https://github.com/Itseez/opencv/blob/master/samples/cpp/houghcircles.cpp but i need exactly coordinates .When i get those coordinates like this

for( size_t i = 0; i < circles.size(); i++ )
    {
        Vec3i c = circles[i];
       cout<<c[0]&lt;&lt;" "&lt;<c[1]&lt;<endl;="" }="" it="" prints="" just="" the="" integer="" part.="" is="" there="" any="" posibility="" to="" get="" the="" center="" more="" precise(4="" decimals="" or="" more)?<="" p="">
cout<<c[0]<<"  "<<c[1]<<endl;
}

it prints just the integer part. Is there any posibility to get the center more precise(4 decimals or more)?

/// Edit FooBar: Same question on SO: http://stackoverflow.com/questions/31672841/accuracy-of-the-center-with-hough-circle-transform