spectra2colour: Function to extract RGB and Munsell colour from a spectra

Description Usage Arguments Value

View source: R/spectra2colour.R

Description

Converts spectra reflectance into RGB and Munsell colours

Usage

1
spectra2colour(spectra, ...)

Arguments

spectra

a matrix or dataframe containing the spectra

...

other arguments to be passed in the function

Value

A dataframe with of size the number of bands plus two. The columns correspond to the number of spectral bands. The RBG colours are accessed by the column name 'colour' and the Munsel colours are accessed by the column name 'munsell'. One colour is provided for each spectra. The spectra is also returned.


AlexandreWadoux/soilspec documentation built on March 7, 2021, 1:54 p.m.