Trait lcms2::CIELabExt [] [src]

pub trait CIELabExt: Sized {
    fn cie2000_delta_e(&self, other: &CIELab, kl: f64, kc: f64, kh: f64) -> f64;
fn cie94_delta_e(&self, other: &CIELab) -> f64;
fn bfd_delta_e(&self, other: &CIELab) -> f64;
fn delta_e(&self, other: &CIELab) -> f64;
fn cmc_delta_e(&self, other: &CIELab, k: f64, c: f64) -> f64;
fn desaturate(&mut self, amin: f64, amax: f64, bmin: f64, bmax: f64) -> bool;
fn encoded(&self) -> [u16; 3];
fn encoded_v2(&self) -> [u16; 3];
fn from_encoded(icc: &[u16; 3]) -> Self;
fn from_encoded_v2(icc: &[u16; 3]) -> Self;
fn to_xyz(&self, white_point: &CIEXYZ) -> CIEXYZ; }

Delta E

Required Methods

Delta-E 2000 is the first major revision of the dE94 equation.

Unlike dE94, which assumes that L* correctly reflects the perceived differences in lightness, dE2000 varies the weighting of L* depending on where in the lightness range the color falls. dE2000 is still under consideration and does not seem to be widely supported in graphics arts applications.

Returns: The CIE2000 dE metric value.

A technical committee of the CIE (TC1-29) published an equation in 1995 called CIE94. The equation is similar to CMC but the weighting functions are largely based on RIT/DuPont tolerance data derived from automotive paint experiments where sample surfaces are smooth. It also has ratios, labeled kL (lightness) and Kc (chroma) and the commercial factor (cf) but these tend to be preset in software and are not often exposed for the user (as it is the case in Little CMS). Returns: The CIE94 dE metric value.

BFD delta E metric.

The dE76 metric value.

The L*a*b* color space was devised in 1976 and, at the same time delta-E 1976 (dE76) came into being. If you can imagine attaching a string to a color point in 3D Lab space, dE76 describes the sphere that is described by all the possible directions you could pull the string. If you hear people speak of just plain 'delta-E' they are probably referring to dE76. It is also known as dE-Lab and dE-ab.

One problem with dE76 is that Lab itself is not 'perceptually uniform' as its creators had intended. So different amounts of visual color shift in different color areas of Lab might have the same dE76 number. Conversely, the same amount of color shift might result in different dE76 values. Another issue is that the eye is most sensitive to hue differences, then chroma and finally lightness and dE76 does not take this into account.

In 1984 the CMC (Colour Measurement Committee of the Society of Dyes and Colourists of Great Britain) developed and adopted an equation based on LCH numbers.

Intended for the textiles industry, CMC l:c allows the setting of lightness (l) and chroma (c) factors. As the eye is more sensitive to chroma, the default ratio for l:c is 2:1 allowing for 2x the difference in lightness than chroma (numbers). There is also a 'commercial factor' (cf) which allows an overall varying of the size of the tolerance region according to accuracy requirements. A cf=1.0 means that a delta-E CMC value <1.0 is acceptable. CMC l:c is designed to be used with D65 and the CIE Supplementary Observer. Commonly-used values for l:c are 2:1 for acceptability and 1:1 for the threshold of imperceptibility.

amin, amax, bmin, bmax: boundaries of gamut rectangle

Encodes a Lab value, from a CIELab value to ICC v4 convention.

Encodes a Lab value, from a CIELab value to ICC v2 convention.

Decodes a Lab value, encoded on ICC v4 convention

Decodes a Lab value, encoded on ICC v2 convention

Colorimetric space conversion.

Implementors