Apply mean filter

Share:

Description

Apply mean filter to data frame with spectra as rows and bands as columns. Filter size is passed as number of bands averaged at both sites of the respective band value.

Usage

1

Arguments

spectra

Data frame containing spectra

p

Filter size.

Value

Filtered data frame of same dimension as input data frame

Author(s)

Lukas Lehnert

See Also

smoothSpeclib

Examples

1
2
3
4
5
6
data(spectral_data)

spectra_filtered <- meanfilter(spectra(spectral_data), p = 10)
spectra(spectral_data) <- spectra_filtered 

  

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.