Next: Color Conversions, Previous: Spectra, Up: Color [Contents][Index]
(require 'color-space)
The low-level metric functions operate on lists of 3 numbers, lab1, lab2, lch1, or lch2.
(require 'color)
The wrapped functions operate on objects of type color, color1 and color2 in the function entries.
Returns the Euclidean distance between lab1 and lab2.
Returns the Euclidean distance in L*a*b* space between color1 and color2.
Measures distance in the L*a*b* color-space. The three axes are individually scaled in their contributions to the total distance.
DE*94
is not symmetrical in its arguments. lab1 is the
“reference” color and lab2 is the “sample” color.
The CIE has defined reference conditions under which the metric with default parameters can be expected to perform well. These are:
The parametric-factors argument is a list of 3 quantities kL, kC and kH. parametric-factors independently adjust each colour-difference term to account for any deviations from the reference viewing conditions. Under the reference conditions explained above, the default is kL = kC = kH = 1.
The Color Measurement Committee of The Society of Dyers and Colorists in Great Britain created a more sophisticated color-distance function for use in judging the consistency of dye lots. With CMC:DE* it is possible to use a single value pass/fail tolerance for all shades.
CMC:DE
is a L*C*h metric. The parametric-factors
argument is a list of 2 numbers l and c. l and
c parameterize this metric. 1 and 1 are recommended for
perceptibility; the default, 2 and 1, for acceptability.
Next: Color Conversions, Previous: Spectra, Up: Color [Contents][Index]