I'm trying to locate and write in a file the coordinates (X,Y) of the centres of multiple circles, and their radii, in a 2D dense image. The circles have two different radii (but, in general, they could have more).
I've search the site and found some implementations of how to do similar things and try myself, like [1], [2], [3], [4] and [5], but without sucess. I wanted to comment in those answers for some help, but, don't have enough points for that, so, that's why i'm making this question.
The images I want to analyze are like this. A 1000 x 1000 px image with red and blue circles in a white background. This one in particular have close to a 1000 of each type of circle.
What I tried to do was to change the colors of one of the type of circles into black, as long with the background, then, the other type of circle to white. In the end, with a black and white image, I tried to locate the centers. But it was far from what it should be. I need all the circles to be detected, or as many as possible.
My knowledge of image processing in Mathematica (in general) is very limited, so, if you could explain what is going on for a layman it would be perfect. Also, if there are other ways to do it (with Matlab, Python, etc...) and if it is as good or easier, it would be welcome as well.
