MunsellToLab {munsellinterpol} | R Documentation |
Convert a Munsell specification to CIE Lab coordinates
Description
MunsellToLab
Converts a
Munsell specification to CIE Lab coordinates, by interpolating over the
extrapolated Munsell renotation data
Usage
MunsellToLab( MunsellSpec, white='D65', adapt='Bradford', ... )
Arguments
MunsellSpec |
a numeric Nx3 matrix with HVC values in the rows, or a vector that can be converted to such a matrix, by row. |
white |
XYZ for the source white - a numeric 3-vector with scaling irrelevant.
|
adapt |
method for chromatic adaptation, see |
... |
other parameters passed to |
Details
The conversion is done in these steps:
HVC → XYZ using
MunsellToXYZ()
XYZ is adapted from Illuminant C to the given
white
usingspacesXYZ::adaptXYZ()
and the given chromatic adaptation methodXYZ → Lab using
spacesXYZ::LabfromXYZ()
with the givenwhite
Value
An Nx3 matrix with the Lab coordinates in each row.
The rownames of Lab are copied from the input HVC matrix,
unless the rownames are NULL
and
then the output rownames are the Munsell notations for HVC.
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
LabToMunsell()
,
MunsellToXYZ()
,
spacesXYZ::LabfromXYZ()
,
spacesXYZ::standardXYZ()
,
spacesXYZ::adaptXYZ()
,
spacesXYZ::CAT()
Examples
MunsellToLab( c('7.6P 8.9/2.2', 'N 5/' ) )
## L a b
## 7.6P 8.9/2.2 89.19097 5.09879 -3.250468
## N 5/ 51.00375 0.00000 0.000000