I've used this alghoritm
http://www.codeproject.com/Articles/336915/Connected-Component-Labeling-Algorithm
to clean an image frome noise.
This is the original noise
And this is what I obtain:
There is still noise around the final image. Does anyone know where the algorithm fails or can recommend a more efficient algorithm? Thank you
The algorithm mentioned is NOT mentioned for noise cleaning. The algorithm separates different continuous areas.
You have decided to use the algorithm for to find and separate the main blot. Why not. But it seems, you have found several close small blots, too. As it is, it seems that your prog takes 2-pixel distance as 1-pixel instance. The reasons could be: