ColorDistance
Compares two pixels using chromatic and non-chromatic information. Assumes RGB color space.
Applications:Color comparison insensitive to changes of illumination.
Syntax
C++
C#
Python
def ColorDistance( inPixelA: Pixel, inPixelB: Pixel, /, *, inChromaAmount: float = 0.7 ) -> outDistance: float
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPixelA | Pixel | |||
![]() |
inPixelB | Pixel | |||
![]() |
inChromaAmount | float | 0.0 - 1.0 | 0.7 | Proportion of chromatic information in distance computation |
![]() |
outDistance | float |


