Learn R Programming

colorscience (version 1.0.0)

spectra2CCT: Correlated Color Temperature (CCT) from spectra

Description

spectra2CCT Correlated Color Temperature (CCT) from spectra.

Usage

spectra2CCT(SPD=NA, isoTempLinesTable=NA,CIETable = ciexyz31, TCS = TCSdata)

Arguments

SPD
light source spd
isoTempLinesTable
Iso temperature lines table
CIETable
reference data values
TCS
spectral reflectance data of 14 color test samples for CRI

Value

  • Correlated Color Temperature (CCT)

source

Rensselaer Polytechnic Institute Light Sources and Color Q & A Appendix B: MATLAB script for calculating measures of light source color: CCT, CRI, GA, and FSI http://www.lrc.rpi.edu/programs/nlpip/lightinganswers/lightsources/appendixb1.asp

References

Rensselaer Polytechnic Institute Light Sources and Color Q & A Appendix B: MATLAB script for calculating measures of light source color: CCT, CRI, GA, and FSI http://www.lrc.rpi.edu/programs/nlpip/lightinganswers/lightsources/appendixb1.asp

Examples

Run this code
# illuminant A
SPD = illuminants[1:51*2-1,c('wlnm','A')] # every 10 nm
CCT <- spectra2CCT(SPD)
CCT

Run the code above in your browser using DataLab