colour.recovery.RGB_to_spectral_Smits1999

colour.recovery.RGB_to_spectral_Smits1999(RGB)[source]

Recovers the spectral power distribution of given RGB colourspace array using Smits (1999) method.

Parameters:RGB (array_like, (3,)) – RGB colourspace array to recover the spectral power distribution from.
Returns:Recovered spectral power distribution.
Return type:SpectralPowerDistribution

References

Examples

>>> from colour.utilities import numpy_print_options
>>> RGB = np.array([0.02144962, 0.13154603, 0.09287601])
>>> with numpy_print_options(suppress=True):
...     RGB_to_spectral_Smits1999(RGB)  
SpectralPowerDistribution([[ 380.        ,    0.0908046...],
                           [ 417.7778    ,    0.0887761...],
                           [ 455.5556    ,    0.0939795...],
                           [ 493.3333    ,    0.1236033...],
                           [ 531.1111    ,    0.1315788...],
                           [ 568.8889    ,    0.1293411...],
                           [ 606.6667    ,    0.0392680...],
                           [ 644.4444    ,    0.0214496...],
                           [ 682.2222    ,    0.0214496...],
                           [ 720.        ,    0.0215463...]],
                          interpolator=CubicSplineInterpolator,
                          interpolator_args={},
                          extrapolator=Extrapolator,
                          extrapolator_args={...})