colour.difference.delta_E_HyAB#

colour.difference.delta_E_HyAB(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]) NDArrayFloat[source]#

Compute the colour difference between two CIE L*a*b* colourspace arrays using a combination of a Euclidean metric in hue and chroma with a city-block metric to incorporate lightness differences.

This metric is intended for large colour differences, on the order of 10 CIE L*a*b* units or greater.

Parameters:
Returns:

Colour difference \(\Delta E_{HyAB}\).

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

Lab_1

100

1

Lab_2

100

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_HyAB(Lab_1, Lab_2)
151.0215481...