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 | |
---|---|---|---|---|---|
inPixelA | const Pixel& | ||||
inPixelB | const Pixel& | ||||
inKL | const float | 0.0 - | 1.0f | The luminance weighting factor | |
inKC | const float | 0.0 - | 1.0f | The chroma weighting factor | |
inKH | const float | 0.0 - | 1.0f | The hue weighting factor | |
outDistance | float& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
RuntimeError | Each pixel component must be nonnegative in ColorDistance_CIEDE2000. |