I am looking for a method that is capable of creating a mask based on what color occur most.. So the idea is that it based what color is occurring most is capable of creating a binary map, that filter those things out which doesn't have the same color as the rest of the picture...
so an ex. would be this picture
It can clearly be seen that most of the image is blue, so based on that color should a mask be created which filters everything that is blue away, and only show the 3 pink dots..