• Docs
  • API
Show / Hide Table of Contents
  • NixUniversalSDK
    • BatteryStateEventArgs
    • ColorData
    • ColorDifferenceType
    • ColorDifferenceTypeExtensions
    • ColorType
    • ColorTypeExtensions
    • ColorUtils
    • CommandStatus
    • CommandStatusExtensions
    • DensityData
    • DensityStatus
    • DensityStatusExtensions
    • DeviceCompat
    • DeviceResult
    • DeviceScanner
    • DeviceScannerState
    • DeviceScannerStateExtensions
    • DeviceState
    • DeviceStateExtensions
    • DeviceStatus
    • DeviceStatusArgs
    • DeviceStatusExtensions
    • DeviceType
    • DeviceTypeExtensions
    • DeviceVersion
    • ExtPowerStateEventArgs
    • IColorData
    • IColorDataExtensions
    • IDensityData
    • IDeviceCompat
    • IDeviceCompatEvents
    • IDeviceCompatExtensions
    • IDeviceScanner
    • IDeviceScannerEvents
    • IMeasurementData
    • IMeasurementDataExtensions
    • ISpectralData
    • ISpectralDataExtensions
    • Illuminant
    • IlluminantExtensions
    • InterfaceType
    • InterfaceTypeExtensions
    • LicenseFeature
    • LicenseFeatureExtensions
    • LicenseManager
    • LicenseManagerState
    • MeasurementData
    • Observer
    • ObserverExtensions
    • ReferenceWhite
    • ReferenceWhiteExtensions
    • ScanMode
    • ScanModeExtensions
    • ScanResultEventArgs
    • ScannerCreatedEventArgs
    • SpectralData
  • NixUniversalSDK.Wrapper
    • Constants
    • Delegates
    • Delegates.BoolValue
    • Delegates.Empty
    • Delegates.IntValue
    • Delegates.StringValue
    • DeviceCompatModule
    • DeviceScannerModule
    • Exported

Interface ISpectralData

Interface describing spectral data

Namespace: NixUniversalSDK
Assembly: NixUniversalSDK.dll
Syntax
public interface ISpectralData

Properties

Interval

Wavelength spacing (eg - 10 nm)

Declaration
int Interval { get; }
Property Value
Type Description
int

Lambda

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

Declaration
int[] Lambda { get; }
Property Value
Type Description
int[]

Mode

Scan mode for this measurement.

Declaration
ScanMode Mode { get; }
Property Value
Type Description
ScanMode

Value

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

Declaration
float[] Value { get; }
Property Value
Type Description
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.

Declaration
float Interpolate(float lT)
Parameters
Type Name Description
float lT

Wavelength (nm) at which to query the interpolated reflectance

Returns
Type Description
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.

Declaration
IColorData ToColorData(ReferenceWhite reference = ReferenceWhite.D50_2, ColorType type = ColorType.CIEXYZ)
Parameters
Type Name Description
ReferenceWhite reference

Selected reference white (defaults to D50_2)

ColorType type

Output color type (defaults to CIEXYZ)

Returns
Type Description
IColorData

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

Extension Methods

ISpectralDataExtensions.ToColorData(ISpectralData, Illuminant, Observer, ColorType)
ISpectralDataExtensions.ToDensityData(ISpectralData, DensityStatus)
ISpectralDataExtensions.ToRgbValue(ISpectralData, Illuminant, Observer)
ISpectralDataExtensions.ToRgbValue(ISpectralData, ReferenceWhite)
In this article
Back to top Generated by DocFX