Convert a Munsell specification to RGB coordinates
MunsellToRGB
Converts a
Munsell specification to RGB coordinates, by interpolating over the
extrapolated Munsell renotation data
MunsellToRGB( MunsellSpec, space='sRGB', maxSignal=255, adapt='Bradford', ... )
MunsellSpec |
a numeric Nx3 matrix with HVC values in the rows, or a vector that can be converted to such a matrix, by row. |
space |
the name of an installed RGB space.
Spaces |
maxSignal |
maximum of the non-linear signal RGB; Other popular values are 1, 1023, and 65535 |
adapt |
method for chromatic adaptation, see |
... |
other parameters passed to |
The conversion is done in these steps.
HVC → xyY using MunsellToxyY()
. This xyY is for Illuminant C.
xyY is adapted from Illuminant C to the white-point of the RGB
space
using adaptxyY()
and the given chromatic adaptation method
xyY → XYZ using XYZfromxyY()
XYZ → RGB using RGBfromXYZ()
with the given space
and maxSignal
a data.frame
with these columns
xyY |
an Nx3 matrix with xyY values in the rows, that are adapted to Illuminant C.
This is an intermediate result that is sometimes useful, e.g. it can be passed
to |
RGB |
an Nx3 matrix with non-linear RGB signal values in the rows. All values are clamped to the appropriate cube, e.g. [0,255]^3 |
OutOfGamut |
logical vector, TRUE means the result was out of gamut (the cube) before clamping it |
In case of error, it returns NULL
.
Jose Gama and Glenn Davis
Paul Centore 2014 The Munsell and Kubelka-Munk Toolbox http://centore.isletech.net/~centore/MunsellAndKubelkaMunkToolbox/MunsellAndKubelkaMunkToolbox.html
installRGB()
,
MunsellToXYZ()
,
RGBfromXYZ()
,
XYZfromxyY()
,
CAT()
,
IsWithinMacAdamLimits()
MunsellToRGB('7.6P 8.9/2.2')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.