colour.models.Jab_to_JCh#

colour.models.Jab_to_JCh(Jab: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) Annotated[TypeAliasForwardRef('NDArrayFloat'), 1, 1, 360][source]#

Convert from Jab colour representation to JCh colour representation.

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

Parameters:

Jab (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Jab colour representation array.

Returns:

JCh colour representation array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

Jab

1

1

Range

Scale - Reference

Scale - 1

JCh

J : 1

C : 1

h : 360

J : 1

C : 1

h : 1

References

[CIET14804h]

Examples

>>> Jab = np.array([41.52787529, 52.63858304, 26.92317922])
>>> Jab_to_JCh(Jab)
array([ 41.5278752...,  59.1242590...,  27.0884878...])