meanfilter: Apply mean filter

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 

  

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.