SpectralData

public final class SpectralData implements ISpectralData

Class describing spectral data obtained from a measurement

Constructors

Link copied to clipboard
public SpectralData SpectralData(IntArray lambda, FloatArray value, ScanMode mode)

Properties

Link copied to clipboard
private final Integer interval

Wavelength spacing (eg - 10 nm)

Link copied to clipboard
private final IntArray lambda

Wavelength values. Each entry i in this array corresponds to a spectral value in value at the same index.

Link copied to clipboard
private final ScanMode mode

Scan mode for this measurement (one of ScanMode.M0, ScanMode.M1, or ScanMode.M2)

Link copied to clipboard
private final FloatArray value

Spectral reflectance values. Each entry i in this array corresponds to a wavelength value in lambda at the same index.

Functions

Link copied to clipboard

Wavelength spacing (eg - 10 nm)

Link copied to clipboard

Wavelength values. Each entry i in this array corresponds to a spectral value in value at the same index.

Link copied to clipboard
public ScanMode getMode()

Scan mode for this measurement (one of ScanMode.M0, ScanMode.M1, or ScanMode.M2)

Link copied to clipboard

Spectral reflectance values. Each entry i in this array corresponds to a wavelength value in lambda at the same index.

Link copied to clipboard
public Float interpolate(Float lT)

Provides an interpolated reflectance value at a specified wavelength value using natural cubic spines. The cubic splines are evaluated at the points specified by lambda and value. Interpolated values are evaluated using natural cubic splines.

Link copied to clipboard
public IColorData toColorData(Illuminant illuminant, Observer observer, IColorData.ColorType type)

Provides color data from this measurement for the specified illuminant and observer white point. Result is null if an invalid white point is specified.

Link copied to clipboard
public Integer toColorInt(Illuminant illuminant, Observer observer)

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is null if an invalid white point is specified.

Link copied to clipboard

Provides absolute density values for this measurement for the specified density status evaluated as per ISO 5-3:2009, or null if the LicenseFeature.DENSITY_DATA feature is not enabled for the current license. See also LicenseManager.Shared.isFeatureEnabled.

Link copied to clipboard
public IntArray toRgbValue(Illuminant illuminant, Observer observer)
public IntArray toRgbValue(ReferenceWhite reference)

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is null if an invalid white point is specified.