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]#
Compute the correlated colour temperature \(T_{cp}\) of a blackbody from specified CIE UCS colourspace uv chromaticity coordinates using 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) – Inversion parameters forwarded to
colour.temperature.x0_CCT_grid()andcolour.temperature.solve_CCT_Newton(). Accepted keys aresamples(grid density for the initial guess, defaultcolour.temperature.CCT_INVERSION_GRID_SAMPLES),newton_iterations,backtrack_iterationsandtolerance(forwarded tosolve_CCT_Newton()).
- Returns:
Correlated colour temperature \(T_{cp}\).
- Return type:
Warning
The current implementation seeds a damped Gauss-Newton iteration with a nearest-neighbour lookup against a coarse grid sampled from the analytical forward, vectorised across all input samples.
References
Examples
>>> uv_to_CCT_Planck1900([0.20042808, 0.31033343]) np.float64(6504.000071...)