qualpal 2.3.0
Loading...
Searching...
No Matches
qualpal::metrics Namespace Reference

Color difference metrics for perceptual color comparison. More...

Classes

struct  CIE76
 CIE76 (Delta E 1976) color difference. More...
 
class  CIEDE2000
 CIEDE2000 (Delta E 2000) color difference. More...
 
class  DIN99d
 DIN99d color difference with optional power transformation. More...
 

Enumerations

enum class  MetricType { DIN99d , CIE76 , CIEDE2000 }
 Supported color difference metrics for palette generation. More...
 

Detailed Description

Color difference metrics for perceptual color comparison.

This namespace contains various color difference calculation methods that quantify the perceptual difference between colors. These metrics are used with algorithms like farthestPoints() to select visually distinct color palettes.

All metric classes follow the same interface pattern:

  • Callable with operator() taking two color objects
  • Template-based to accept any color type that can be converted to the required color space
  • Return a numeric difference value (higher = more different)
See also
colorDifferenceMatrix() for computing full distance matrices
farthestPoints() for palette selection using these metrics

Enumeration Type Documentation

◆ MetricType

enum class qualpal::metrics::MetricType
strong

Supported color difference metrics for palette generation.

Use this enum to select which color difference formula to use in qualpal algorithms and CLI.

Enumerator
DIN99d 

DIN99d color difference.

CIE76 

CIE76 (Delta E 1976) color difference.

CIEDE2000 

CIEDE2000 (Delta E 2000) color difference.

Definition at line 82 of file metrics.h.