I\'m writing a program that works with images and at some point I need to posterize the image. This means I need to bin the colors, but I\'m having trouble deciding how to t
What do you mean by "posterize the image"?
If you're trying to cluster the colors into bins, you should look at cluster analysis