Module empfindung::cie94

source ·
Expand description

Implementation of the CIE94 colour distance algorithm.

The CIE94 (ΔE₉₄) is a quasimetric which can be parameterised with three parameters which indicate what effect difference in lightness, chroma and hue have on the computed distance. The module provides diff function which requires those parameters to be specified as a KSubParams argument to customise the coefficients.

Note that the distance is not symmetrical, i.e. in general case diff(a, b, ksub) != diff(b, a, ksub). Prefer crate::cie00 module if you needa proper metric or crate::cie76 module if additional performance cost is not acceptable.

Structs

k parameters adjusting what effect lightness, hue and chroma difference will have on the calculated distance.

Functions

Returns the CIE94 colour difference between two L*a*b* colours using specified k parameters.
diff_rgbDeprecated
Returns the CIE94 colour difference between two sRGB colours using custom k parameters.