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

CIEDE2000 (Delta E 2000) color difference. 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.

CIEDE2000 color difference formula space.

Definition at line 171 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 185 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 203 of file metrics.h.


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