Filter optimization for spectral smoothing
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (1)
Image Analyst
am 26 Mär. 2013
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 Kommentare
Image Analyst
am 27 Mär. 2013
All right, then just use a window size of 9 and an order of 3 and go with that.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!