Skip to main content

ciede2000

Function ciede2000 

pub fn ciede2000(xyz1: &Xyz, xyz2: &Xyz) -> f32
Expand description

CIEDE2000 colour difference between two XYZ values (in Lab space).

Implements the full CIEDE2000 formula (Sharma et al. 2005) with the rotation term (RT), chroma compensation (SL, SC, SH), and hue averaging. This is the perceptually-uniform ΔE used by the visual oracle criterion.

Reference: G. Sharma, W. Wu, E. N. Dalal, “The CIEDE2000 Color-Difference Formula: Implementation Notes, Supplementary Test Data, and Mathematical Observations”, Color Research & Application, 2005.