Learn R Programming

colorscience (version 1.0.8)

XYZ2Lab: convert from XYZ coordinates to CIE Lab coordinates

Description

XYZ2Lab convert from XYZ coordinates to CIE Lab coordinates.

Usage

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

Arguments

XYZmatrix

XYZ coordinates

illuminant

illuminant

observer

observer

RefWhite

Reference White

Value

CIE Lab coordinates

References

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

Examples

Run this code
# NOT RUN {
XYZ<-c(0.11465380, 0.08391198, 0.08222077)
CIELMatrix<-XYZ2Lab(XYZ*100)
# }

Run the code above in your browser using DataLab