colour.temperature.xy_to_CCT_Kang2002

colour.temperature.xy_to_CCT_Kang2002(xy, optimisation_parameters=None)[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_parameters (dict_like, optional) – Parameters for scipy.optimize.minimize() definition.
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

[Kang2002a]

Examples

>>> xy_to_CCT_Kang2002(np.array([0.31342600, 0.32359597]))
... # doctest: +ELLIPSIS
6504.3893128...