Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

meanfilter

Apply mean filter


Description

Apply mean filter to spectra. Filter size is passed as number of bands averaged at both sides of the respective band value.

Usage

meanfilter(spectra, p = 5)

Arguments

spectra

Data.frame, matrix or Speclib containing spectra

p

Filter size.

Value

Filtered matrix or Speclib of same dimension as input matrix/Speclib

Author(s)

Lukas Lehnert

See Also

Examples

data(spectral_data)

spectra_filtered <- meanfilter(spectral_data, p = 10)
plot(spectra_filtered[1,])
plot(spectral_data[1,], new = FALSE)

hsdar

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.