qualpal 3.3.0
Loading...
Searching...
No Matches
qualpal::metrics::CIE76 Struct Reference

CIE76 (Delta E 1976) color difference metric. More...

#include <metrics.h>

Public Member Functions

template<typename ColorType1 , typename ColorType2 >
double operator() (const ColorType1 &c1, const ColorType2 &c2) const
 Calculate CIE76 color difference.
 

Detailed Description

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,ColorType2Any color type convertible to colors::Lab.
See also
qualpal::colors::Lab

Definition at line 169 of file metrics.h.

Member Function Documentation

◆ operator()()

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

Calculate CIE76 color difference.

Template Parameters
ColorType1Any color class that can be converted to colors::DIN99d
ColorType2Any color class that can be converted to colors::DIN99d
Parameters
c1First color
c2Second color
Returns
CIE76 Delta E value

Definition at line 180 of file metrics.h.


The documentation for this struct was generated from the following file: