From: Walter Roberson on
Arie Arden wrote:
> One more I'd like to mention - concerning color quantization:
>
> I believe my needs here are a bit different.
> Regular color quantization seeks to preserve the original as best as
> possible, thereby it cannot simply ignore rare colors in the image.
> I'm seeking to get the dominant colors in the original, I actually need
> to get rid of the rare colors...

Perhaps convert to HSV, histogram the hue, throw away the less-used entries?

It depends, though, on what qualifies as a "dominant color". If for example I
were to create an RGB pixel stripe from (0,0,0) to (0,0,255) then would the
"dominant color" be "all of them" (because no colour appears more than the
others), or would it be simply "blue" (i.e., same hue implies same color no
matter what the brightness)?