colour.models.Jab_to_JCh¶
-
colour.models.
Jab_to_JCh
(Jab)[source]¶ Converts from Jab* colour representation to JCh colour representation.
This definition is used to perform conversion from CIE L*a*b* colourspace to CIE L*C*Hab colourspace and for 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 (array_like) – Jab* colour representation array.
- Returns
JCh colour representation array.
- Return type
ndarray
Notes
Domain
Scale - Reference
Scale - 1
Jab
J
: [0, 100]a
: [-100, 100]b
: [-100, 100]J
: [0, 1]a
: [-1, 1]b
: [-1, 1]Range
Scale - Reference
Scale - 1
JCh
J
: [0, 100]C
: [0, 100]h
: [0, 360]J
: [0, 1]C
: [0, 1]h
: [0, 1]References
Examples
>>> Jab = np.array([41.52787529, 52.63858304, 26.92317922]) >>> Jab_to_JCh(Jab) array([ 41.5278752..., 59.1242590..., 27.0884878...])