powered by
Convert XYZ coordinates to CIE Lab
xyz2lab( XYZ, white=c(95.047,100,108.883) )
a numeric Nx3 matrix with CIE XYZ coordinates in the rows, or a vector that can be converted to such a matrix, by row.
XYZ for the reference white. The default is Illuminant D65, 2-degree observer
An Nx3 matrix with the CIE Lab coordinates in the rows. The rownames of the input are copied to the output.
CIE 15: Technical Report: Colorimetry. CIE 15:2004. 3rd edition. ISBN 3901906339.
Lab Color Space. https://en.wikipedia.org/wiki/Lab_color_space
lab2xyz()
# NOT RUN { xyz2lab( c(90.310897, 99.306510, 74.613450) ) # }
Run the code above in your browser using DataLab