5.0

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 2.24 KB File ID: #4270

2-D Savitzky-Golay Smoothing Filter

by Jianwen Luo

 

16 Dec 2003 (Updated 19 Dec 2003)

i.e. the Polynomial smoothingfilter or the least-squares smoothing filter.

| Watch this File

File Information
Description

2-D Savitzky-Golay smoothing filter (i.e., the polynomial smoothing
filter, or the least-squares smoothing filter)

See Ref. [1] for details on the 1-D Savitzky-Golay smoothing filter.
One can also refer to the following URL where a program of
1-D Savitzky-Golay smoothing (and differentiation) filter is given:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4038&objectType=file

See Ref. [2] and [3] for details on the 2-D Savitzky-Golay smoothing filter.

Usage:
h=sgsf_2d(x,y,px,py,flag_coupling)
x = x data point, e.g., -3:3
y = y data point, e.g., -2:2
px =x polynomial order default=1
py =y polynomial order default=1
flag_coupling = with or without the consideration of the coupling terms, between x and y. default=0

Example:
sgsf_2d(-3:3,-3:3,2,2)
sgsf_2d(-3:3,-3:3,2,2,1)

Author:
Jianwen Luo <luojw@bme.tsinghua.edu.cn, luojw@ieee.org> 2003-12-15
Department of Biomedical Engineering, Department of Electrical Engineering
Tsinghua University, Beijing 100084, P. R. China

Reference
[1]A. Savitzky and M. J. E. Golay, "Smoothing and Differentiation of Data by Simplified Least Squares Procedures," Analytical Chemistry, vol. 36, pp. 1627-1639, 1964.
[2]K. L. Ratzlaff and J. T. Johnson, "Computation of Two-Dimensional Polynomial Least-Squares Convolution Smoothing Integers," Analytical Chemistry, vol. 61, pp. 1303-1305, 1989.
[3]J. E. Kuo, H. Wang, and S. Pickup, "Multidimensional Least-Squares Smoothing Using Orthogonal Polynomials," Analytical Chemistry, vol. 63, pp. 630-635, 1991.

Acknowledgements
This submission has inspired the following:
z-transform of 1D & 2D Savitzky-Golay Smoothing and Differentiation Filter, fSGolayFilt
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
02 Mar 2004 Habibollah Khajehsharifi

Good

29 Mar 2004 Sameer Bhutani

Not helpful enough

29 Oct 2004 Jianwen Luo

See all the contributions in MATLAB Central File Exchange at http://www.mathworks.com/matlabcentral/fileexchange/loadFileList.do?objectType=search&criteria=savitzky+or+sgolayfilt&Search=Go

20 Jun 2005 Jianwen Luo

x and/or y can be in even length, e.g., sgsf_2d(-2.5:2.5,-3.5:3.5,1,1) or sgsf_2d(-2.5:2.5,-3:3,1,1).

22 Sep 2005 Travis Mitchell

very useful

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filter design Jianwen Luo 22 Oct 2008 07:11:16
filter analysis Jianwen Luo 22 Oct 2008 07:11:16
savitzkygolay Jianwen Luo 22 Oct 2008 07:11:16
smoothing Jianwen Luo 22 Oct 2008 07:11:16
polynomial Jianwen Luo 22 Oct 2008 07:11:16
leastsquares Jianwen Luo 22 Oct 2008 07:11:16

Contact us at files@mathworks.com