[][src]Module colorspace::lab

Lab color space and difference calculations.

See http://www.brucelindbloom.com/index.html?ColorDifferenceCalc.html

Structs

Lab

Lab colour value

Functions

delta_E_1976

Compute the difference between two Lab* colors according to the CIE 1976 formula.

delta_E_2000

Compute the difference between two L'a'b' colors according to the CIEDE2000 formula.

lab

Short constructor for a Lab

xyz_to_lab

Convert an XYZ color to a Lab colour with the given reference white. Lab colours are normally specified relative to D50, so if your XYZ is relative to something else, you might want to convert it first using the chromatic_adaptation module.