Ask Your Question

Revision history [back]

HoughCircles call ignores radius parameters (C++; OpenCV 2.4.13)

I am having trouble getting a seemingly trivial piece of code to work with OpenCV 2.3-2.4 set of libraries. It works fine with OpenCV 4.x.

It seem that cv::HoughCircles(...) completely ignores minimum radius parameters. I get a vector of circles back (vector<vec3f>) of an enormous size (like 18446743965337911194!) and when I try to print any of the elements I mostly get circles of radius 0 or even negative radius. I am probably missing something simple, but I've already unsuccessfully tried a number of approaches to isolate my issue: played with other input parameters, even passed a completely black image so I would not be able to find any circles. Nothing seems to change the output.

Thanks!