I have an image of some white text on a blue background. Actually the text could be any color and the background color be any color. The text has some aliasing on it as well. I wish to find the color of the text, so the background color would be one dominant color and the text color is another dominant color. How I can find these two colors?
Really in general I would like to know how to find the two most dominant colors in the image.