ColorDistance
Color difference (WMA link)
ColorDistance
[$c_1$, $c_2$]
- returns a measure of color distance between the colors $c_1$ and $c_2$.
ColorDistance
[list, $c_2$]
- returns a list of color distances between the colors in list and $c_2$.
The option DistanceFunction specifies the method used to measure the color
distance. Available options are:
- CIE76: Euclidean distance in the LABColor space
- CIE94: Euclidean distance in the LCHColor space
- CIE2000 or CIEDE2000: CIE94 distance with corrections
- CMC: Color Measurement Committee metric (1984)
- DeltaL: difference in the L component of LCHColor
- DeltaC: difference in the C component of LCHColor
- DeltaH: difference in the H component of LCHColor
It is also possible to specify a custom distance.
ColorDistance[{Red, Blue}, {Green, Yellow}, DistanceFunction -> {"CMC", "Perceptibility"}]