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