Hello Justin,

Can anyone please suggest a decent algorithm for
determining a "color distance" metric between
two colors?  The requirement is to come up with
a good algorithm for contrasting a computed color
from another color.

I'd work in HSV. convert the hue channel to an absolute difference and then combine with a weighted sum. You might also take a look at some graphics design ideas about the color wheel (e.g. make the f(H) have peeks for complementary colors) and you could have some fun with a crowd sourced fitness function driving a GA to get the tuning factors right.

--
... <IXOYE><



Reply via email to