Learn R Programming

munsellinterpol (version 2.0.1)

xyz2lab: Convert XYZ coordinates to CIE Lab

Description

Convert XYZ coordinates to CIE Lab

Usage

xyz2lab( XYZ, white=c(95.047,100,108.883) )

Arguments

XYZ

a numeric Nx3 matrix with CIE XYZ coordinates in the rows, or a vector that can be converted to such a matrix, by row.

white

XYZ for the reference white. The default is Illuminant D65, 2-degree observer

Value

An Nx3 matrix with the CIE Lab coordinates in the rows. The rownames of the input are copied to the output.

References

CIE 15: Technical Report: Colorimetry. CIE 15:2004. 3rd edition. ISBN 3901906339.

Lab Color Space. https://en.wikipedia.org/wiki/Lab_color_space

See Also

lab2xyz()

Examples

Run this code
# NOT RUN {
xyz2lab( c(90.310897, 99.306510, 74.613450) )
# }

Run the code above in your browser using DataLab