You are here: Start » AVL.NET » Function Reference » Image » Image Metrics » 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 | |
---|---|---|---|---|---|
inPixelA | AvlNet.Pixel | ||||
inPixelB | AvlNet.Pixel | ||||
inKL | float | <0.0f, INF> | 1.0f | The luminance weighting factor. Default value: 1.0f. | |
inKC | float | <0.0f, INF> | 1.0f | The chroma weighting factor. Default value: 1.0f. | |
inKH | float | <0.0f, INF> | 1.0f | The hue weighting factor. Default value: 1.0f. | |
outDistance | float |
Errors
List of possible exceptions:
Error type | Description |
---|---|
RuntimeError | Each pixel component must be nonnegative in ColorDistance_CIEDE2000. |