Apply mean filter to spectra. Filter size is passed as number of bands averaged at both sides of the respective band value.
meanfilter(spectra, p = 5)
Data.frame, matrix or Speclib containing spectra
Filtered matrix or Speclib of same dimension as input matrix/Speclib
data(spectral_data) spectra_filtered <- meanfilter(spectral_data, p = 10) plot(spectra_filtered[1,]) plot(spectral_data[1,], new = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.