powered by
An algorithm for removing baselines based on Fast Fourier Transform filtering
baseline.lowpass(spectra, steep = 2, half = 5)
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
Matrix with spectra in rows
Steepness of filter curve
Half-way point of filter curve
Kristian Hovde Liland and Bjørn-Helge Mevik
Since the scale of the spectra will be different after filtering, baselines will not be returned by the algorithm
AHMET K. ATAKAN, W. E. BLASS, and D. E. JENNINGS: Elimination of Baseline Variations from a Recorded Spectrum by Ultra-low Frequency Filtering
data(milk) bc.lowpass <- baseline(milk$spectra[1,, drop=FALSE], method='lowpass') if (FALSE) { plot(bc.lowpass) }
Run the code above in your browser using DataLab