SPDToCCT
>Psychtoolbox>PsychColorimetric
CCT = SPDToCCT(SPD,S_SPD)
Calculate Correlated Colour Temperature (CCT) from a spectral power
distribution.
Works by computing 1960 uv coordinates of black body radiators and then
finding closest to the uv coordinates of the passed spectral power
distribution.
The source code contains examples. Edit and then select and execute.
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychColorimetric/SPDToCCT.m