Filter optimization for spectral smoothing
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 26 de Mzo. de 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 comentarios
Image Analyst
el 27 de Mzo. de 2013
All right, then just use a window size of 9 and an order of 3 and go with that.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!