Learn R Programming

munsellinterpol (version 2.0.1)

XYZ2xyY: Convert XYZ coordinates to xyY

Description

XYZ2xyY Converts XYZ coordinates to xyY.

Usage

XYZ2xyY( XYZ )

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.

Value

a numeric Nx3 matrix with xyY coordinates in the rows. If the sum of XYZ is not positive, x and y are set to NA. The rownames are copied from input to output.

References

Wikipedia. CIE 1931 color space. https://en.wikipedia.org/wiki/CIE_1931_color_space

Logicol S.r.l., 2014 EasyRGB color search engine http://www.easyrgb.com/

See Also

xyY2XYZ()

Examples

Run this code
# NOT RUN {
XYZ2xyY(c(0.310897, 0.306510, 0.3))
# }

Run the code above in your browser using DataLab