colour.temperature.xy_to_CCT_Kang2002¶
- colour.temperature.xy_to_CCT_Kang2002(xy, optimisation_kwargs=None, **kwargs)[source]¶
Returns the correlated colour temperature \(T_{cp}\) from given CIE xy chromaticity coordinates using Kang et al. (2002) method.
- Parameters
xy (array_like) – CIE xy chromaticity coordinates.
optimisation_kwargs (dict_like, optional) – Parameters for
scipy.optimize.minimize()
definition.**kwargs (dict, optional) – Keywords arguments for deprecation management.
- Returns
Correlated colour temperature \(T_{cp}\).
- Return type
ndarray
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
[]
Examples
>>> xy_to_CCT_Kang2002(np.array([0.31342600, 0.32359597])) ... 6504.3893128...