colour.recovery.RGB_to_msds_Gaussian#
- colour.recovery.RGB_to_msds_Gaussian(RGB: ArrayLike) NDArrayFloat[source]#
Recover spectral values from RGB colourspace array using Gaussian basis spectra and the Smits (1999) decomposition algorithm.
- Parameters:
RGB (ArrayLike) – RGB colourspace array to recover spectral values from. The last dimension must be size 3.
- Returns:
Recovered spectral values with shape
(*RGB.shape[:-1], wavelengths).- Return type:
Notes
Domain
Scale - Reference
Scale - 1
RGB1
1
Examples
>>> import numpy as np >>> RGB = np.array( ... [ ... [0.45623196, 0.03080455, 0.04093343], ... [0.05438271, 0.29877169, 0.07188444], ... [0.01863137, 0.05139773, 0.28887675], ... ] ... ) >>> RGB_to_msds_Gaussian(RGB).shape (3, 421) >>> float(RGB_to_msds_Gaussian(RGB)[0, 300]) 0.4561...