Learn R Programming

munsellinterpol (version 3.0-0)

XYZtoMunsell: Convert XYZ coordinates to Munsell HVC

Description

XYZtoMunsell Convert XYZ coordinates to Munsell HVC, by interpolating over the Munsell renotation data

Usage

XYZtoMunsell( 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. The XYZ are for viewing in an environment with Illuminant C.

...

other parameters passed to xyYtoMunsell()

Value

an Nx3 matrix with Munsell HVC in the rows. The rownames are copied from input to output, unless the rownames are NULL when they are set to the Munsell notations for HVC. In case of error, it returns NULL.

Details

the function calls XYZ2xyY() and xyYtoMunsell().

The conversion is done in these steps:

References

Paul Centore 2014 The Munsell and Kubelka-Munk Toolbox https://www.munsellcolourscienceforpainters.com/MunsellAndKubelkaMunkToolbox/MunsellAndKubelkaMunkToolbox.html

See Also

MunsellToXYZ(), spacesXYZ::xyYfromXYZ()

Examples

Run this code
# NOT RUN {
XYZtoMunsell( c(0.310897, 0.306510, 74.613450) )
##                         H         V        C
##  0.51PB 0.27/9.9 70.50874 0.2671142 9.916039
# }

Run the code above in your browser using DataLab