Module empfindung::cmc

source ·
Expand description

Implementation of the CMC l:c colour distance algorithm.

The CMC l:c is a quasimetric which is parameterised by two weights: l and c. Commonly used pair of weights are 1:1 and 2:1.

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.

Constants

ΔE CMC 1:1 parameters.
ΔE CMC 2:1 parameters.

Functions

Returns the CMC l:c colour difference between two L*a*b* colours using specified l and c parameters.
diff_rgbDeprecated
Returns the CMC l:c colour difference between two sRGB colours using specified l and c parameters.