qualpal 3.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 metric. More...
 
class  CIEDE2000
 CIEDE2000 (Delta E 2000) color difference metric. More...
 
class  DIN99d
 DIN99d color difference metric with optional power transformation. More...
 

Enumerations

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

Detailed Description

Color difference metrics for perceptual color comparison.

Contains functor classes implementing standard color difference formulas (DIN99d, CIE76, CIEDE2000) for quantifying perceptual differences between colors. Used in palette selection (e.g., farthestPoints()), palette analysis, and color distinguishability evaluation.

All metric classes:

  • Are callable with operator() taking two color objects.
  • Are template-based to accept any color type convertible to the required color space.
  • Return a numeric difference value (Delta E; 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 and analysis.

Use this enum to select the color difference formula for qualpal algorithms, palette analysis, and CLI tools.

  • DIN99d: Perceptually uniform metric, robust for small differences.
  • CIE76: Simple Euclidean distance in Lab space (Delta E 1976).
  • CIEDE2000: State-of-the-art perceptual metric (Delta E 2000).
Enumerator
DIN99d 

DIN99d color difference.

CIE76 

CIE76 (Delta E 1976) color difference.

CIEDE2000 

CIEDE2000 (Delta E 2000) color difference.

Definition at line 90 of file metrics.h.