Qualpal
Repositories

qualpal::metrics::CIE76

C++ · cpp · 4.1.0

struct qualpal::metrics::CIE76

CIE76 (Delta E 1976) color difference metric.

Computes the Euclidean distance between two colors in CIE Lab space. This is the simplest color difference formula, but less perceptually accurate than DIN99d or CIEDE2000.

Template parameters

ColorType1, ColorType2

Any color type convertible to colors::Lab.

See also

qualpal::colors::Lab

Methods

operator()

template<typename ColorType1, typename ColorType2> inline double operator()(const ColorType1 & c1, const ColorType2 & c2) const

Calculate CIE76 color difference.

Template parameters

ColorType1

Any color class that can be converted to colors::DIN99d

ColorType2

Any color class that can be converted to colors::DIN99d

Parameters

c1

First color

c2

Second color

Returns

CIE76 Delta E value