colour.temperature.xy_to_CCT_Kang2002¶
- colour.temperature.xy_to_CCT_Kang2002(xy: ArrayLike, optimisation_kwargs: Optional[Dict] = None) FloatingOrNDArray [source]¶
Return the correlated colour temperature \(T_{cp}\) from given CIE xy chromaticity coordinates using Kang et al. (2002) method.
- Parameters
xy (ArrayLike) – CIE xy chromaticity coordinates.
optimisation_kwargs (Optional[Dict]) – Parameters for
scipy.optimize.minimize()
definition.
- Returns
Correlated colour temperature \(T_{cp}\).
- Return type
Warning
Kang et al. (2002) does not give an analytical inverse transformation to compute the correlated colour temperature \(T_{cp}\) from given CIE xy chromaticity coordinates, the current implementation relies on optimization using
scipy.optimize.minimize()
definition and thus has reduced precision and poor performance.References
[KMH+02]
Examples
>>> xy_to_CCT_Kang2002(np.array([0.31342600, 0.32359597])) ... 6504.3893128...