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

AVL.ColorDistance_CIEDE2000

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inPixelAAvlNet.Pixel
inPixelBAvlNet.Pixel
inKLfloat<0.0f, INF>1.0fThe luminance weighting factor. Default value: 1.0f.
inKCfloat<0.0f, INF>1.0fThe chroma weighting factor. Default value: 1.0f.
inKHfloat<0.0f, INF>1.0fThe hue weighting factor. Default value: 1.0f.
outDistancefloat

Errors

List of possible exceptions:

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

See also