XYZtoMunsell: Convert XYZ coordinates to Munsell HVC

View source: R/conversions.R

XYZtoMunsellR Documentation

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()

Details

the function calls XYZ2xyY() and xyYtoMunsell().

The conversion is done in these steps:

  • XYZ \rarrow xyY using spacesXYZ::xyYfromXYZ()

  • xyY \rarrow HVC using xyYtoMunsell() and ...

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.

Author(s)

Jose Gama and Glenn Davis

References

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

See Also

MunsellToXYZ(), spacesXYZ::xyYfromXYZ()

Examples

XYZtoMunsell( c(0.310897, 0.306510, 74.613450) )
##                         H         V        C
##  0.51PB 0.27/9.9 70.50874 0.2671142 9.916039

munsellinterpol documentation built on April 8, 2022, 9:07 a.m.