Spectral Interpolator object. More...
Inherits object.
Properties | |
std_illuminant = property | |
int: Retrieves the standard illuminant from the interpolator object(see cvb.spectral.StdIlluminant). | |
std_observer = property | |
int: Retrieves the standard observer from the interpolator object(see cvb.spectral.StdObserver). | |
wavelengths = property | |
List[float]: Retrieves the wavelengths of the illuminant spectrum. | |
Spectral Interpolator object.
Creates an interpolator.
The interpolator is used to fit the wavelengths of the standard observer and the standard illuminant to the wavelengths in the Cube. As reference wavelengths the values of CVSFI_Wavelength in the cube metadata are used. Internally the color matching functions are defined in the range:
The standard illuminant are defined in the range:
cube : cvb.spectral.Cube Metadata needs to contain wavelength info.
std_observer : int Standard observer used to access predefined Color Matching functions for the Lab and XYZ conversion(see cvb.spectral.StdObserver).
std_illuminant : int Standard illuminant used to access the predefined relative spectral power distribution for the Lab and XYZ conversion (see cvb.spectral.StdIlluminant).
interpolation_method : Optional[int] Interpolation method used for the color matching function and illuminant spectrum (see cvb.spectral.InterpolationMethod). By default cvb.spectral.InterpolationMethod.linear.