prepares data to run multithreaded continuum removal

apply_continuum_removal(Spectral_Data, Spectral, nbCPU = 1)

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

Value

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