Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Metrics » ColorDistance_CIEDE2000

ColorDistance_CIEDE2000


Header: AVL.h
Namespace: avl
Module: FoundationPro

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

Syntax

C++
C#
 
void avl::ColorDistance_CIEDE2000
(
	const avl::Pixel& inPixelA,
	const avl::Pixel& inPixelB,
	const float inKL,
	const float inKC,
	const float inKH,
	float& outDistance
)

Parameters

Name Type Range Default Description
Input value inPixelA const Pixel&
Input value inPixelB const Pixel&
Input value inKL const float 0.0 - 1.0f The luminance weighting factor
Input value inKC const float 0.0 - 1.0f The chroma weighting factor
Input value inKH const float 0.0 - 1.0f The hue weighting factor
Output value outDistance float&

Errors

List of possible exceptions:

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