XYZ2xyY: convert from XYZ coordinates to xyY coordinates

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

XYZ2xyY convert from XYZ coordinates to xyY coordinates.

Usage

1
2
XYZ2xyY(XYZmatrix,illuminant='D65',observer=2,
RefWhite=get("XYZperfectreflectingdiffuser", envir = environment())) 

Arguments

XYZmatrix

XYZ coordinates

illuminant

illuminant

observer

observer

RefWhite

Reference White

Value

xyY coordinates

Author(s)

Jose Gama

Source

Bruce Justin Lindbloom, 2014 http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_T.html

References

Bruce Justin Lindbloom, 2014 http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_T.html

Examples

1
2
XYZ<-c(0.11465380, 0.08391198, 0.08222077)
XYZ2xyY(XYZ)

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, units

Loading required package: pracma

Attaching package: 'pracma'

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

    ceil

Loading required package: sp
          [,1]      [,2]       [,3]
[1,] 0.4083308 0.2988462 0.08391198

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