Interface ISpectralData
- Namespace
- NixUniversalSDK
- Assembly
- NixUniversalSDK.dll
Interface describing spectral data
public interface ISpectralData
- Extension Methods
Properties
Interval
Wavelength spacing (eg - 10 nm)
int Interval { get; }
Property Value
Lambda
Wavelength values. Each entry i
in this array corresponds to a spectral value in Value at the same index.
int[] Lambda { get; }
Property Value
- int[]
Mode
Scan mode for this measurement.
ScanMode Mode { get; }
Property Value
Value
Spectral reflectance values. Each entry i
in this array corresponds to a wavelength value in Lambda at the same index.
float[] Value { get; }
Property Value
- float[]
Methods
Interpolate(float)
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.
float Interpolate(float lT)
Parameters
lT
floatWavelength (nm) at which to query the interpolated reflectance
Returns
- float
Interpolated reflectance value at lT
ToColorData(ReferenceWhite, ColorType)
Provides color data from this measurement for the specified illuminant and observer white point. Result is null
if an invalid white point is specified.
IColorData ToColorData(ReferenceWhite reference = ReferenceWhite.D50_2, ColorType type = ColorType.CIEXYZ)
Parameters
reference
ReferenceWhiteSelected reference white (defaults to D50_2)
type
ColorTypeOutput color type (defaults to CIEXYZ)
Returns
- IColorData
Color data, or
null
if an invalid white point is specified