Filter optimization for spectral smoothing
Mostra commenti meno recenti
I am smoothing FTIR spectra and using a Savitzky-Golay filter. My issue is with the optimization of the filter. I don't know how to pick the ideal windowsize and polynomial degree. I wish to detect and quantify peaks in the spectra, but the peak-widths differ, implying different optimal smoothing windows. How can I optimize these parameters?
Risposte (1)
Image Analyst
il 26 Mar 2013
0 voti
Bigger windows give more smoothing. Lower orders give more smoothing. Why do you want to smooth your spectra? If there is noise, then why don't you just try a few window widths at orders of 2 - 4 and see what looks good? There is no right answer. If you think it looks good, then go ahead and use it. You can use findpeaks() either before or after sgolay() to find the peaks.
2 Commenti
Nellikin
il 27 Mar 2013
Image Analyst
il 27 Mar 2013
All right, then just use a window size of 9 and an order of 3 and go with that.
Categorie
Scopri di più su Smoothing and Denoising in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!