i want to write a c# program to count number of colered circles like the below image.
if any one have any algorithm or code to show how i can do this please share it with me.
here is sample image:(its not clearly sharp but most of images is sharp enough)
(source: biologyofhumanaging.com)From the sample image, the background and circles seem to be easily distinguishable. I would try segmenting the image by thresholding the image (e.g. Make the circles black and the background White)
Once you've done this you should be able to get a fairly good estimate by dividing the number of black pixels by the average number of pixels in a circle.
I am assuming all the images are the same style (and size) and that you don't need an exact count.
精彩评论