Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HoughCircles problem. C++.

I am trying to detect the amount of circles in an image. Apparently I either do not know how to use HoughCircles (which is the most likely scenario :D) or it simply is not good enough.

Not much to say, I'll upload a picture and post my code and hopefully you'll be able to help me out.

Picture with circles (which cannot be detected): http://imgur.com/2SmvysV

Code: http://pastebin.com/0M62cYmr

I seriously took the code from the internet. Made minor changes like param1 and param2 were changed to 80 instead of 100 in the HoughCircles function.

Previous post for the interested ones: http://answers.opencv.org/question/89472/detecting-circlesellipsewhatever-in-an-image/

HoughCircles problem. C++.

I am trying to detect the amount of circles in an image. Apparently I either do not know how to use HoughCircles (which is the most likely scenario :D) or it simply is not good enough.

Not much to say, I'll upload a picture and post my code and hopefully you'll be able to help me out.

Picture with circles (which cannot be detected): http://imgur.com/2SmvysV

Code: http://pastebin.com/0M62cYmr

I seriously took the code from the internet. Made minor changes like param1 and param2 were changed to 80 instead of 100 in the HoughCircles function.

Previous post for the interested ones: http://answers.opencv.org/question/89472/detecting-circlesellipsewhatever-in-an-image/

EDIT: As I said, it either does not detect any dots/circles at all or detects fake ones. Any kind of help is appreciated!

HoughCircles problem. C++.

I am trying to detect the amount of circles in an image. Apparently I either do not know how to use HoughCircles (which is the most likely scenario :D) or it simply is not good enough.

Not much to say, I'll upload a picture and post my code and hopefully you'll be able to help me out.

Picture with circles (which cannot be detected): http://imgur.com/2SmvysV

Code: http://pastebin.com/0M62cYmr

I seriously took the code from the internet. Made minor changes like param1 and param2 were changed to 80 instead of 100 in the HoughCircles function.

Previous post for the interested ones: http://answers.opencv.org/question/89472/detecting-circlesellipsewhatever-in-an-image/

EDIT: As I said, it either does not detect any dots/circles at all or detects fake ones. Any kind of help is appreciated!