Module empfindung::cie00

source ·
Expand description

Implementation of the CIEDE2000 colour distance algorithm.

The CIEDE2000 (ΔE₀₀) is a metric 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 uses default parameters as well as diff_with_params which accepts KSubParams argument to customise the coefficients.

Structs

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

Functions

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