VTK
Classes | Functions
CIEDE2000 Namespace Reference

Private header used by vtkColorTransferFunction to support LAB/CIEDE2000 interpolation. More...

Classes

struct  Node
 Node of the color path. More...
 

Functions

double GetCIEDeltaE2000 (const double lab1[3], const double lab2[3])
 Returns the distance between two colors as given by the CIE Delta E 2000 (CIEDE2000) color distance measure. More...
 
double GetColorPath (const double rgb1[3], const double rgb2[3], std::vector< Node > &path)
 Calculates the shortest color path between two colors with respect to the CIEDE2000 measure and returns its overall length. More...
 

Detailed Description

Private header used by vtkColorTransferFunction to support LAB/CIEDE2000 interpolation.

The implementation is a modified version based on the following: https://github.com/gfiumara/CIEDE2000

Function Documentation

double CIEDE2000::GetCIEDeltaE2000 ( const double  lab1[3],
const double  lab2[3] 
)

Returns the distance between two colors as given by the CIE Delta E 2000 (CIEDE2000) color distance measure.

double CIEDE2000::GetColorPath ( const double  rgb1[3],
const double  rgb2[3],
std::vector< Node > &  path 
)

Calculates the shortest color path between two colors with respect to the CIEDE2000 measure and returns its overall length.