colour.temperature.uv_to_CCT_Planck1900#

colour.temperature.uv_to_CCT_Planck1900(uv: ArrayLike, cmfs: MultiSpectralDistributions | None = None, optimisation_kwargs: dict | None = None) NDArrayFloat[source]#

Return the correlated colour temperature \(T_{cp}\) of a blackbody from given CIE UCS colourspace uv chromaticity coordinates and colour matching functions.

Parameters:
  • uv (ArrayLike) – CIE UCS colourspace uv chromaticity coordinates.

  • cmfs (MultiSpectralDistributions | None) – Standard observer colour matching functions, default to the CIE 1931 2 Degree Standard Observer.

  • optimisation_kwargs (dict | None) – Parameters for scipy.optimize.minimize() definition.

Returns:

Correlated colour temperature \(T_{cp}\).

Return type:

numpy.ndarray

Warning

The current implementation relies on optimisation using scipy.optimize.minimize() definition and thus has reduced precision and poor performance.

References

[CIET14804e]

Examples

>>> uv_to_CCT_Planck1900(np.array([0.20042808, 0.31033343]))
... 
6504.0000617...