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/89...
EDIT: As I said, it either does not detect any dots/circles at all or detects fake ones. Any kind of help is appreciated!
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. --> Apart from the very helpfull post of @jmbapps your problem is actually the fact that you are grabbing the code from the internet and that you have no knowledge of what the code is doing and what the parameters are specifying. In the future, start by reading op on techniques and you will get much faster to a solution then depending on others...