XYZtoMunsell {munsellinterpol} | R Documentation |
XYZtoMunsell
Convert XYZ coordinates to Munsell HVC, by interpolating over the Munsell renotation data
XYZtoMunsell( XYZ, ... )
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 |
the function calls XYZ2xyY()
and xyYtoMunsell()
.
The conversion is done in these steps:
XYZ → xyY using spacesXYZ::xyYfromXYZ()
xyY → HVC using xyYtoMunsell()
and ...
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
.
Jose Gama and Glenn Davis
Paul Centore 2014 The Munsell and Kubelka-Munk Toolbox https://www.munsellcolourscienceforpainters.com/MunsellAndKubelkaMunkToolbox/MunsellAndKubelkaMunkToolbox.html
MunsellToXYZ()
,
spacesXYZ::xyYfromXYZ()
XYZtoMunsell( c(0.310897, 0.306510, 74.613450) )
## H V C
## 0.51PB 0.27/9.9 70.50874 0.2671142 9.916039