spectra2XYZ: convert spectral data to tristimulus values

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

spectra2XYZ convert spectral data to tristimulus values.

Usage

1
spectra2XYZ(spectraIn=NA, illuminantIn=NA, ciexyzIn=NA,wlIn=NA, wlInterval=NA) 

Arguments

spectraIn

spectral data

illuminantIn

illuminant

ciexyzIn

range of illuminant wavelengths

wlIn

range of spectral wavelengths

wlInterval

arbitrary wavelength interval to be applied to all series through interpolation

Value

XYZ coordinates

Author(s)

Jose Gama

Source

Andrew S. Glassner, 1995 Principles of digital image synthesis: Vol. 1 Kaufmann

References

Andrew S. Glassner, 1995 Principles of digital image synthesis: Vol. 1 Kaufmann

Examples

1
spectra2XYZ(MaterialReferenceData[,c('wavelength','BlueSky')])

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

[1] 0.1753379 0.1847771 0.3493461

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