spectra2CRIGAIFSCI: CRI, GAI and FSCI from spectra

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

spectra2CRIGAIFSCI Color Rendering Index (CRI), Gamut Area Index (GAI) and full spectrum index (FSCI) from spectra.

Usage

1
2
3
spectra2CRIGAIFSCI(SPD=NA, isoTempLinesTable=NA, CCT=NA, 
CIETable = get("ciexyz31", envir = environment()), TCS = get("TCSdata", 
envir = environment())) 

Arguments

SPD

light source spd

isoTempLinesTable

Iso temperature lines table

CCT

Correlated Color Temperature (CCT)

CIETable

reference data values

TCS

spectral reflectance data of 14 color test samples for CRI

Value

CRI, GAI and FSCI

Author(s)

Jose Gama

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# illuminant A
## Not run: 
SPD = illuminants[1:51*2-1,c('wlnm','A')] # every 10 nm
isoTempLinesTable <- createIsoTempLinesTable(SPD)
CCT <- spectra2CCT(SPD)
spectra2CRIGAIFSCI(SPD, isoTempLinesTable, CCT)
spectra2CRIGAIFSCI(SPD, isoTempLinesTable)
spectra2CRIGAIFSCI(SPD)

## End(Not run)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

Loading required package: munsellinterpol
Loading required package: geometry
Loading required package: magic
Loading required package: abind
Loading required package: pracma

Attaching package: 'pracma'

The following object is masked from 'package:munsellinterpol':

    hypot

The following objects are masked from 'package:geometry':

    dot, polyarea

The following object is masked from 'package:magic':

    magic

The following object is masked from 'package:Hmisc':

    ceil

Loading required package: sp

Attaching package: 'colorscience'

The following objects are masked from 'package:munsellinterpol':

    XYZ2xyY, xyY2XYZ

x <-  0.4475996 	y <-  0.407533 
        CRIra GamutAreaIndex     FSCI
[1,] 99.99232       53.77744 74.65092
x <-  0.4475996 	y <-  0.407533 
        CRIra GamutAreaIndex     FSCI
[1,] 99.99232       53.77744 74.65092
x <-  0.4475996 	y <-  0.407533 
        CRIra GamutAreaIndex     FSCI
[1,] 99.99232       53.77744 74.65092

colorscience documentation built on Oct. 30, 2019, 9:33 a.m.