colour.bandpass_correction#

colour.bandpass_correction(sd: colour.colorimetry.spectrum.SpectralDistribution, method: Union[Literal['Stearns 1988'], str] = 'Stearns 1988') colour.colorimetry.spectrum.SpectralDistribution[source]#

Implement spectral bandpass dependence correction on given spectral distribution using given method.

Parameters
Returns

Spectral bandpass dependence corrected spectral distribution.

Return type

colour.SpectralDistribution

References

[SS88], [WRC12a]

Examples

>>> from colour import SpectralDistribution
>>> from colour.utilities import numpy_print_options
>>> data = {
...     500: 0.0651,
...     520: 0.0705,
...     540: 0.0772,
...     560: 0.0870,
...     580: 0.1128,
...     600: 0.1360
... }
>>> with numpy_print_options(suppress=True):
...     bandpass_correction(SpectralDistribution(data))
... 
SpectralDistribution([[ 500.        ,    0.0646518...],
                      [ 520.        ,    0.0704293...],
                      [ 540.        ,    0.0769485...],
                      [ 560.        ,    0.0856928...],
                      [ 580.        ,    0.1129644...],
                      [ 600.        ,    0.1379256...]],
                     SpragueInterpolator,
                     {},
                     Extrapolator,
                     {'method': 'Constant', 'left': None, 'right': None})