colour.models.JCh_to_Jab#

colour.models.JCh_to_Jab(JCh: ArrayLike) NDArrayFloat[source]#

Convert from JCh colour representation to Jab colour representation.

This definition is used to perform conversion from CIE L*C*Hab colourspace to CIE L*a*b* colourspace and for other similar conversions. It implements a generic transformation from the correlates of Lightness \(J\), chroma \(C\) and hue angle \(h\) to Lightness \(J\), \(a\) and \(b\) opponent colour dimensions.

Parameters:

JCh (ArrayLike) – JCh colour representation array.

Returns:

Jab colour representation array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

JCh

J : [0, 100]

C : [0, 100]

h : [0, 360]

J : [0, 1]

C : [0, 1]

h : [0, 1]

Range

Scale - Reference

Scale - 1

Jab

J : [0, 100]

a : [-100, 100]

b : [-100, 100]

J : [0, 1]

a : [-1, 1]

b : [-1, 1]

References

[CIET14804h]

Examples

>>> JCh = np.array([41.52787529, 59.12425901, 27.08848784])
>>> JCh_to_Jab(JCh)  
array([ 41.5278752...,  52.6385830...,  26.9231792...])