Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Metrics » ColorDistance_CIE94
ColorDistance_CIE94
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Compares two pixels using CIE94 delta E. Assumes RGB color space.
Syntax
C++
C#
void avl::ColorDistance_CIE94 ( const avl::Pixel& inPixelA, const avl::Pixel& inPixelB, const float inKL, const float inKC, const float inKH, const float inK1, const float inK2, 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 (best to use 1.0 for graphic arts and 2.0 for textiles) | |
inKC | const float | 0.0 - | 1.0f | The chroma weighting factor (usually 1.0) | |
inKH | const float | 0.0 - | 1.0f | The hue weighting factor (usually 1.0) | |
inK1 | const float | 0.0 - 1.0 | 0.045f | The secondary chroma weighting factor (best to use 0.045 for graphic arts and 0.048 for textiles) | |
inK2 | const float | 0.0 - 1.0 | 0.015f | The secondary luminance weighting factor (best to use 0.015 for graphic arts and 0.014 for textiles) | |
outDistance | float& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
RuntimeError | Each pixel component must be nonnegative in ColorDistance_CIE94. |