| 
    Zephyr Scientific Library (zscilib)
    
   | 
 
Spectral power distribution for a specific illumination. More...
#include <colorimetry.h>
Data Fields | |
| size_t | size | 
| struct { | |
| unsigned int nm | |
| zsl_real_t value | |
| } | comps [] | 
Spectral power distribution for a specific illumination.
This struct contains the illuminant power at given wavelength intervals.
Example
The following code defines a zsl_clr_spd instance for an illumnation that was captured on a spectrograph in 20 nm intervals between 380 and 780 nm, for a total of 21 data samples.
CCT was calculated as 5983.00 K and 0.0033 Duv, with an output CIE 1931 XYZ tristimulus of X: 0.9516409, Y: 1.0000000, Z: 1.0059365.
Definition at line 515 of file colorimetry.h.
| struct { ... } zsl_clr_spd::comps[] | 
The spectral component data that makes up the spd.
| unsigned int zsl_clr_spd::nm | 
The wavelength in nm for this specific sample.
Definition at line 520 of file colorimetry.h.
| size_t zsl_clr_spd::size | 
The number of elements in the component array.
Definition at line 517 of file colorimetry.h.
| zsl_real_t zsl_clr_spd::value | 
The relative value of this specific sample.
Definition at line 522 of file colorimetry.h.
 1.8.17