lab_function | R Documentation |
This function takes a reflectance spectra (R object ot file) as an input and calculates the corresponding L*a*b* parameters. TO DO - add info about the models and illuminants used to estimate XYZ and L*a*b*. (TODO- add calculations for HUE and Chroma values)
lab_function(wl = NA, spectra = NA, file = NA)
wl |
vector with the wavelengths |
spectra |
vector with the reflectance data |
file |
string with the path for an ASD reflectance file |
The function returns a list with: 1) a dataframe with the input data (wl and spectra); 2) a vector with the XYZ parameters; and 3) a vector with the L*a*b* parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.