colour.difference.delta_E_HyCH#

colour.difference.delta_E_HyCH(Lab_1: ArrayLike, Lab_2: ArrayLike, textiles: bool = False) NDArrayFloat[source]#

Return the 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 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 (ArrayLike) – CIE L*a*b* colourspace array 1.

  • Lab_2 (ArrayLike) – CIE L*a*b* colourspace array 2.

  • textiles (bool)

Returns:

Colour difference HyCH.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

Lab_1

L_1 : [0, 100]

a_1 : [-100, 100]

b_1 : [-100, 100]

L_1 : [0, 1]

a_1 : [-1, 1]

b_1 : [-1, 1]

Lab_2

L_2 : [0, 100]

a_2 : [-100, 100]

b_2 : [-100, 100]

L_2 : [0, 1]

a_2 : [-1, 1]

b_2 : [-1, 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...