Filter optimization for spectral smoothing
显示 更早的评论
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?
回答(1 个)
Image Analyst
2013-3-26
0 个投票
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 个评论
Nellikin
2013-3-27
Image Analyst
2013-3-27
All right, then just use a window size of 9 and an order of 3 and go with that.
类别
在 帮助中心 和 File Exchange 中查找有关 Smoothing and Denoising 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!