colour.recovery.RGB_to_sd_Smits1999

colour.recovery.RGB_to_sd_Smits1999(RGB)[source]

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

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

Notes

Domain Scale - Reference Scale - 1
RGB [0, 1] [0, 1]

References

[Smits1999a]

Examples

>>> from colour.utilities import numpy_print_options
>>> RGB = np.array([0.40639599, 0.02752894, 0.03982193])
>>> with numpy_print_options(suppress=True):
...     RGB_to_sd_Smits1999(RGB)  # doctest: +ELLIPSIS
SpectralDistribution([[ 380.        ,    0.0769192...],
                      [ 417.7778    ,    0.0587004...],
                      [ 455.5556    ,    0.0394319...],
                      [ 493.3333    ,    0.0302497...],
                      [ 531.1111    ,    0.0275069...],
                      [ 568.8889    ,    0.0280864...],
                      [ 606.6667    ,    0.3429898...],
                      [ 644.4444    ,    0.4118579...],
                      [ 682.2222    ,    0.4118579...],
                      [ 720.        ,    0.4118075...]],
                     interpolator=LinearInterpolator,
                     interpolator_args={},
                     extrapolator=Extrapolator,
                     extrapolator_args={...})