ColorDistance_CIE94


Compares two pixels using CIE94 delta E. Assumes RGB color space.

Syntax

C++
C#
Python
 
def ColorDistance_CIE94(
	inPixelA: Pixel,
	inPixelB: Pixel,
	/,
	*,
	inKL: float = 1.0,
	inKC: float = 1.0,
	inKH: float = 1.0,
	inK1: float = 0.045,
	inK2: float = 0.015
)
-> outDistance: float

Parameters

Name Type Range Default Description
Input value inPixelA Pixel
Input value inPixelB Pixel
Input value inKL float 0.0 - 1.0 The luminance weighting factor (best to use 1.0 for graphic arts and 2.0 for textiles)
Input value inKC float 0.0 - 1.0 The chroma weighting factor (usually 1.0)
Input value inKH float 0.0 - 1.0 The hue weighting factor (usually 1.0)
Input value inK1 float 0.0 - 1.0 0.045 The secondary chroma weighting factor (best to use 0.045 for graphic arts and 0.048 for textiles)
Input value inK2 float 0.0 - 1.0 0.015 The secondary luminance weighting factor (best to use 0.015 for graphic arts and 0.014 for textiles)
Output value outDistance float