Mathematica 9 is now available
Previous section-----Next section

5.3 Linear Filtering

Selected FIR filters.

BoxFilter, DiskFilter, GaussianFilter, ExponentialFilter and SmoothingFilter are all variants of so-called smoothing filters. They produce a response that is the local average of the samples of a signal. Such an operation tends to reduce the local variability of sample values and thus decreases signal noise and smooths the signal. However, averaging also smears image edges resulting in a blurred picture. BoxFilter returns a matrix with constant coefficients equal to the inverse of the filter's dimensions. This FIR filter is commonly known as a moving-average filter.
In[1]:=
In[2]:=
Out[2]//MatrixForm=Out[2]//MatrixForm=
The Savitzky-Golay FIR smoothing filters, also known as polynomial smoothing or least-squares smoothing filters, are generalizations of the FIR moving-average filter. These are filters that optimally (in the sense of least squares) fit a set of data points to polynomials of different degrees. These filters preserve edges far better than a moving-average filter at the expense of not removing as much noise. For additional noise reduction techniques, see Section 5.5. The length N of a Savitzky-Golay filter must be odd and at least two greater than the desired polynomial order k (i.e., N>k+1). For any given length N, filters of order k and k+1, where k is even, return the same result. Here we show the coefficients of a Savitzky-Golay filter of order three and dimensions 5 × 5.
In[3]:=
Out[3]//MatrixForm=Out[3]//MatrixForm=
In[4]:=
In[5]:=
Out[5]=Out[5]=

UnsharpFilter option.

In[6]:=
Out[6]=Out[6]=
In[7]:=
Out[7]//MatrixForm=Out[7]//MatrixForm=
In[8]:=
Out[8]=Out[8]=


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.