As you can see in the problem.png file attached, I want to input a Bitmap having a black background and some white points accumulations. I want then to find the position of only those accumulations that are in a given size range. Hence, if the regions are to small then I don't want them (in picture I draw a red circle around these unwanted regions). The green regions are the ones that satisfy my size range.
How can I implement this (in C#) using AForge.Net and findContours (and maybe using dilation and erosion to fill the empty spaces in the clusters before applying findContours)? The input is a Bitmap similar to the one attached here. The output should be a list of center coordinates for each of the accumulation.
Please help me with this problem. It is very urgent for me!!!!!!!!! Any help (sample code) would be appriciated. Thank you!!!!!!!!!