- Rgb To Munsell Converter
- Munsell To Rgb Conversion
- Rgb To Munsell Converter Weight Calculator
- Munsell To Hex
For Munsell to RGB conversion, a vector of R colors is returned that is the same length as the input data. For RGB to Munsell conversion, a dataframe (NA-padded) of hue, value, chroma, and Euclidean distance to nearest matching color is returned. The is a simple online tool that lets you browse the Munsell color notation in your web browser. Feb 02, 2020 MunsellSpec: a numeric Nx3 matrix with HVC values in the rows, or a vector that can be converted to such a matrix, by row. MunsellSpec can also be a character vector with Munsell Notations, which is converted to an Nx3 matrix using HVCfromMunsellName.
Description
MunsellToRGB
Converts a Munsell specification to RGB coordinates, by interpolating over the extrapolated Munsell renotation data
Usage
Rgb To Munsell Converter
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. |
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 |
Details
The conversion is done in these steps.
HVC rarrow xyY using
MunsellToxyY()
. This xyY is for Illuminant C.xyY is adapted from Illuminant C to the white-point of the RGB
space
usingadaptxyY()
and the given chromatic adaptation methodxyY rarrow XYZ using
XYZfromxyY()
XYZ rarrow RGB using
RGBfromXYZ()
with the givenspace
andmaxSignal
Value
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 passedto |
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
.
Author(s)
Jose Gama and Glenn Davis
References
Paul Centore 2014The Munsell and Kubelka-Munk Toolboxhttp://centore.isletech.net/~centore/MunsellAndKubelkaMunkToolbox/MunsellAndKubelkaMunkToolbox.html
See Also
installRGB()
,MunsellToXYZ()
,RGBfromXYZ()
,XYZfromxyY()
,CAT()
,IsWithinMacAdamLimits()
Examples
Example output
R/munsell2rgb.R
Convert sRGB color coordinates to the closest n
Munsell chips in the munsell
lookup table.
Arguments
color | a |
---|---|
colorSpace | distance metric (colorspace) to use for finding the closest chip: CIE2000 is the most accurate but requires farver >= 2.0.3, Euclidean distance in CIELAB is a close second, while Euclidean distance in sRGB is not at all accurate and should only be used for demonstration purposes. |
nClosest | number of closest Munsell colors to return (valid range is 1-20) |
Value
an (NA-padded) data.frame
containing hue
, value
, chroma
, and distance (dE00 when colorSpace = 'CIE2000'
, Euclidean distance otherwise) to nearest matching color.
Note
Munsell To Rgb Conversion
This function is fully vectorized and will pad output with NA-records when NA are present in color
.
References
Author
Rgb To Munsell Converter Weight Calculator
D.E. Beaudette