Question
I am looking for a function that attempts to quantify how "distant" (or distinct) two colors are. This question is really in two parts:
- What color space best represents human vision?
- What distance metric in that space best represents human vision (euclidean?)
Answer
HSL and HSV are better for human color perception. According to Wikipedia:
It is sometimes preferable in working with art materials, digitized images, or other media, to use the HSV or HSL color model over alternative models such as RGB or CMYK, because of differences in the ways the models emulate how humans perceive color. RGB and CMYK are additive and subtractive models, respectively, modelling the way that primary color lights or pigments (respectively) combine to form new colors when mixed.
0 comments:
Post a Comment