CVB.Net 15.0
ColorConversion.Interpolator Class Reference

Spectral interpolator class containing the interpolated values of the relative spectral power distribution from color matching functions and standard illuminant. More...

Inherits INativeHandle.

Public Member Functions

 Interpolator (Cube cube, StdObserver stdObserver, StdIlluminant stdIlluminant, InterpolationMethod interpolationMethod)
 Constructor. More...
 
void Dispose ()
 IDisposable implementation.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 IDisposable helper function. More...
 

Properties

IntPtr Handle [get]
 Native handle.
 
bool IsDisposed [get]
 Gets if the native handle has been disposed.
 
StdObserver Observer [get]
 Standard observer used for accessing predefined color matching functions for the Lab and XYZ conversion.
 
StdIlluminant Illuminant [get]
 Standard illuminant used for accessing predefined color matching functions for the Lab and XYZ conversion.
 
double[] Wavelengths [get]
 Wavelenghts of the illuminant spectrum.
 
- Properties inherited from INativeHandle
IntPtr Handle [get]
 The native handle of the object.
 
bool IsDisposed [get]
 Possibility to check whether the object has already been disposed of.
 

Events

NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 
- Events inherited from INativeHandle
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 

Detailed Description

Spectral interpolator class containing the interpolated values of the relative spectral power distribution from color matching functions and standard illuminant.

The interpolator is used for fitting the wavelengths of the standard observer and the standard illuminant to the wavelengths in the cube. The values of Wavelengths in the cube MetaData are used as reference wavelenghts.

Internally the color matching functions are defined in the range:
2006 2deg: [390 nm, 830 nm] in 0.1 nm steps
2006 10deg: [390 nm, 830 nm] in 0.1 nm steps
1964 10deg: [360 nm, 380 nm] in 5 nm steps
1931 2deg: [380 nm, 825 nm] in 5 nm steps
The standard illuminants are defined in the range:
Standard A: [300 nm, 830 nm] in 1 nm steps
Standard D50: [300 nm, 780 nm] in 5 nm steps
Standard D65: [300 nm, 830 nm] in 1 nm steps
Standard E: [300 nm, 830 nm] in a 530 nm step (this spectrum is even for the whole spectrum)

Constructor & Destructor Documentation

◆ Interpolator()

Interpolator ( Cube  cube,
StdObserver  stdObserver,
StdIlluminant  stdIlluminant,
InterpolationMethod  interpolationMethod 
)

Constructor.

Parameters
cubeNormalized cube.
stdObserverStandard observer.
stdIlluminantStandard illuminant.
interpolationMethodInterpolation method used for the color matching functions and illuminant spectrum.

Member Function Documentation

◆ Dispose()

virtual void Dispose ( bool  disposing)
protectedvirtual

IDisposable helper function.

Parameters
disposing

Event Documentation

◆ ObjectDisposing

NativeHandleEventDelegate ObjectDisposing

Raised when this object is about to be disposed via the IDisposable.Dispose method.

This event is raised right before this object is disposed. The dispose itself cannot be canceled.