File Exchange

image thumbnail

2-D Savitzky-Golay Smoothing Filter

version (1.09 KB) by Jianwen Luo
i.e. the Polynomial smoothingfilter or the least-squares smoothing filter.


Updated 19 Dec 2003

No License

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:

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

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


Jianwen Luo <,> 2003-12-15
Department of Biomedical Engineering, Department of Electrical Engineering
Tsinghua University, Beijing 100084, P. R. China

[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.

Comments and Ratings (6)

how can I pass arguments x y with a 2 dimentional matrix of a image?

Travis Mitchell

very useful

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).

Jianwen Luo

Sameer Bhutani

Not helpful enough

Habibollah Khajehsharifi


MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux