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:
Notes
Domain
Scale - Reference
Scale - 1
Jab1
1
Range
Scale - Reference
Scale - 1
JChJ: 1C: 1h: 360J: 1C: 1h: 1References
Examples
>>> Jab = np.array([41.52787529, 52.63858304, 26.92317922]) >>> Jab_to_JCh(Jab) array([ 41.5278752..., 59.1242590..., 27.0884878...])