Computes continuum removal for matrix shaped data: more efficient than processing individual spectra the convex hull is based on the computation of the derivative between R at a given spectral band and R at the following bands

continuum_removal(mat_init, spectral_bands, p = NULL)

Arguments

mat_init

numeric. initial data matrix (nb samples x nb bands)

spectral_bands

numeric. central wavelength for the spectral bands

p

list. progressor object for progress bar

Value

samples from image and updated number of pixels to sampel if necessary