## S3 method for class 'colorSpec':
computeCRI( x, adapt=TRUE, attach=FALSE, tol=5.4e-3 )
type
equal to 'light'
, and exactly 1 spectrumTRUE
, then a special chromatic adaption is performed, see DetailsTRUE
, then a large list of intermediate calculations
is attached to the returned number, as attribute data
.
This attached list includes data for all special 14 color samples, although
the last 6 do not affect the retNA
.
The default tol=5.4e-3
computeCCT
returns a single number <= 100.="" in="" case="" of="" error="" it="" returns="" NA.
If attach
is TRUE
a large list is attached to the returned number.=>
adapt
is TRUE
the 8 test uv
points
are chromatically adapted from the test illuminant to the reference illuminant
using a special von Kries type transformation; see Oleari and
Wikipedia.
The test UVW values are computed relative to the reference illuminant.
If adapt
is FALSE
the 8 test uv
points
are not chromatically adapted,
and the test UVW values are computed relative to the test illuminant.type
,
xyz1931
,
computeCCT
computeCRI( subset(Fs.5nm,'F2') ) # returns 64.152
computeCRI( subset(Fs.5nm,'F4') ) # returns 51.352
Run the code above in your browser using DataLab