colour.bandpass_correction#
- colour.bandpass_correction(sd: SpectralDistribution, method: Literal['Stearns 1988'] | str = 'Stearns 1988') SpectralDistribution [source]#
Implement spectral bandpass dependence correction on given spectral distribution using given method.
- Parameters:
sd (SpectralDistribution) – Spectral distribution.
method (Literal['Stearns 1988'] | str) – Correction method.
- Returns:
Spectral bandpass dependence corrected spectral distribution.
- Return type:
References
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})