You are here: Start » AVL.NET » Function Reference » Image » Image Metrics » AVL.ColorDistance_CIE94

AVL.ColorDistance_CIE94

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ColorDistance_CIE94
(
	AvlNet.Pixel inPixelA,
	AvlNet.Pixel inPixelB,
	float inKL,
	float inKC,
	float inKH,
	float inK1,
	float inK2,
	out float outDistance
)

Parameters

Name Type Range Default Description
inPixelAAvlNet.Pixel
inPixelBAvlNet.Pixel
inKLfloat<0.0f, INF>1.0fThe luminance weighting factor (best to use 1.0 for graphic arts and 2.0 for textiles). Default value: 1.0f.
inKCfloat<0.0f, INF>1.0fThe chroma weighting factor (usually 1.0). Default value: 1.0f.
inKHfloat<0.0f, INF>1.0fThe hue weighting factor (usually 1.0). Default value: 1.0f.
inK1float<0.0f, 1.0f>0.045fThe secondary chroma weighting factor (best to use 0.045 for graphic arts and 0.048 for textiles). Default value: 0.045f.
inK2float<0.0f, 1.0f>0.015fThe secondary luminance weighting factor (best to use 0.015 for graphic arts and 0.014 for textiles). Default value: 0.015f.
outDistancefloat

Errors

List of possible exceptions:

Error type Description
RuntimeError Each pixel component must be nonnegative in ColorDistance_CIE94.

See also