colour.difference.delta_E_HyCH#
- colour.difference.delta_E_HyCH(Lab_1: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100], Lab_2: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100], textiles: bool = False) NDArrayFloat[source]#
Compute the colour difference between two CIE L*a*b* colourspace arrays using a combination of Euclidean metric in hue and chroma with a city-block metric to incorporate lightness differences based on CIE 2000 recommendation attributes.
This metric is intended for large colour differences, on the order of 10 CIE L*a*b* units or greater.
- Parameters:
Lab_1 (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100]) – CIE L*a*b* colourspace array 1.
Lab_2 (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 100]) – CIE L*a*b* colourspace array 2.
textiles (bool) – Whether to use the textile-specific parametrization.
- Returns:
Colour difference \(\Delta E_{HyCH}\).
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
Lab_1100
1
Lab_2100
1
References
[AATF20]
Examples
>>> Lab_1 = np.array([39.91531343, 51.16658481, 146.12933781]) >>> Lab_2 = np.array([53.12207516, -39.92365056, 249.54831278]) >>> delta_E_HyCH(Lab_1, Lab_2) 48.664279419760369...