Learn R Programming

colorscience (version 1.0.2)

XYZ2RGB: convert from XYZ coordinates to CIE RGB coordinates

Description

XYZ2RGB convert from XYZ coordinates to CIE RGB coordinates.

Usage

XYZ2RGB(XYZmatrix, illuminant = "D65", observer = 2, RefWhite  = colorscience::XYZperfectreflectingdiffuser, RGBModel = "sRGB", RefWhiteRGB = colorscience::whitepointsRGB, gamma = NA, RefWhiteIllum = colorscience::XYZperfectreflectingdiffuser, CAT = "Bradford", CATarray = colorscience::ChromaticAdaptation)

Arguments

XYZmatrix
XYZ coordinates
illuminant
illuminant
observer
observer
RefWhite
Reference White
RGBModel
RGB model
RefWhiteRGB
white points for RGB model
gamma
gamma
RefWhiteIllum
Reference perfect reflecting diffuser
CAT
CAT
CATarray
Chromatic Adaptation

Value

CIE RGB coordinates

References

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

Examples

Run this code
XYZ<-c(0.11465380, 0.08391198, 0.08222077)
XYZ2RGB(XYZ)

Run the code above in your browser using DataLab