lab_function: Construct L*a*b* images from a reflectance spectra

View source: R/labfunctions.R

lab_functionR Documentation

Construct L*a*b* images from a reflectance spectra

Description

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)

Usage

lab_function(wl = NA, spectra = NA, file = NA)

Arguments

wl

vector with the wavelengths

spectra

vector with the reflectance data

file

string with the path for an ASD reflectance file

Value

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


bmjesus/hyperfish documentation built on May 30, 2022, 4:04 p.m.