Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Metrics » ColorDistance_CIEDE2000

ColorDistance_CIEDE2000
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Compares two pixels using CIEDE2000 delta E. Assumes RGB color space.
Syntax
C++
C#
void fil::ColorDistance_CIEDE2000 ( const fil::Pixel& inPixelA, const fil::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. |