qualpal 3.3.0
Loading...
Searching...
No Matches
qualpal::metrics::CIEDE2000 Class Reference

CIEDE2000 (Delta E 2000) color difference metric. More...

#include <metrics.h>

Public Member Functions

 CIEDE2000 (double K_L=1.0, double K_C=1.0, double K_H=1.0)
 Construct CIEDE2000 metric with optional weighting factors.
 
template<typename ColorType1 , typename ColorType2 >
double operator() (const ColorType1 &c1, const ColorType2 &c2) const
 Calculate CIEDE2000 color difference.
 

Detailed Description

CIEDE2000 (Delta E 2000) color difference metric.

Computes the perceptual color difference between two colors using the CIEDE2000 formula, the most accurate standard for perceptual color difference. Allows optional weighting factors for lightness, chroma, and hue.

While most accurate, this is also the most computationally intensive of the metrics.

Template Parameters
ColorType1,ColorType2Any color type convertible to colors::Lab.
Parameters
K_LLightness weighting factor (default: 1.0).
K_CChroma weighting factor (default: 1.0).
K_HHue weighting factor (default: 1.0).
See also
qualpal::colors::Lab

Definition at line 205 of file metrics.h.

Constructor & Destructor Documentation

◆ CIEDE2000()

qualpal::metrics::CIEDE2000::CIEDE2000 ( double  K_L = 1.0,
double  K_C = 1.0,
double  K_H = 1.0 
)
inlineexplicit

Construct CIEDE2000 metric with optional weighting factors.

Parameters
K_LLightness weighting factor (default: 1.0)
K_CChroma weighting factor (default: 1.0)
K_HHue weighting factor (default: 1.0)

Definition at line 219 of file metrics.h.

Member Function Documentation

◆ operator()()

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

Calculate CIEDE2000 color difference.

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

Definition at line 237 of file metrics.h.


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