Compute and plot 1D and 2D Savitzky-Golay smoothing and differentiation filters.
Savitzky-Golay (GS)Filters are polynomial-based filters frequently used for processing of 2D Images.
A good basic introdution to these filters is found on net at:
The following MATLAB functions that compute GS-filters are available at the MATLAB File Exchange:
File IDs [4038; 5661; 4270; 6121; 7003; 5556; 6047; 6151]
This zip-folder contains two functions: ztrans1d.m and ztrans2d.m that compute the z-transform of any GS filter and plot its amplitude spectrum.
Following is a demo of these functions in action for 1D and 2D GS-filters.
The main code in the attachment calls the following scripts:
SGSDF1D, SGSF2D, SGDF2D, ZTRANS1D, ZTRANS2D
But out of the above only ZTRANS1D and ZTRANS2D are present in the attachment. The others are missing.
Inspired by: Savitzky-Golay Smoothing and Differentiation Filter, 2-D Savitzky-Golay Smoothing Filter, Savitzky-Golay Smoothing and Differentiation Filter, fSGolayFilt, Savitzky-Golay smoothing and differentiation filter (closed-formed solutions), Adaptive-Degree Polynomial Filter (Savitzky-Golay Filter), 2-D Savitzky-Golay Differentiation Filter, Adaptive-degree polynomial (Savitzky-Golay) filter for data differentiation