prepares data to run multithreaded continuum removal

apply_continuum_removal(Spectral_Data, Spectral, nbCPU = 1, progressbar = F)

Arguments

Spectral_Data

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

Spectral

list. information about spectral bands

nbCPU

numeric. number of CPUs to be used in parallel

progressbar

boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)

Value

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