Table of Contents

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

int

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

ScanMode

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 float

Wavelength (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 ReferenceWhite

Selected reference white (defaults to D50_2)

type ColorType

Output color type (defaults to CIEXYZ)

Returns

IColorData

Color data, or null if an invalid white point is specified