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
Input value inPixelA Pixel
Input value inPixelB Pixel
Input value inChromaAmount float 0.0 - 1.0 0.7 Proportion of chromatic information in distance computation
Output value outDistance float