This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

GaussianFilter

GaussianFilter[image, r]
filters image by convolving with a Gaussian kernel of pixel radius r.
GaussianFilter[image, r, {n1, n2}]
convolves image with a kernel formed from the ni^(th) vertical and horizontal discrete derivatives of the Gaussian.
GaussianFilter[image, {r, Sigma}, ...]
uses a Gaussian kernel with radius r and standard deviation Sigma.
GaussianFilter[image, {{r1, r2}, ...}]
uses radii ri etc. in vertical and horizontal directions.
GaussianFilter[data, ...]
applies Gaussian filtering to an array of data.
  • In GaussianFilter[data, ...], data can be an array of any rank, and can contain symbolic as well as numerical entries.
Gaussian filter of a three-channel image, using a 4-pixel radius:
Apply an elliptic Gaussian to blur more in the horizontal direction:
Vertical Gaussian derivative:
Horizontal Gaussian derivative:
Horizontal and vertical derivatives combined:
Apply a Gaussian filter to a list of values:
Gaussian filter of a three-channel image, using a 4-pixel radius:
In[1]:=
Click for copyable input
Out[1]=
 
Apply an elliptic Gaussian to blur more in the horizontal direction:
In[1]:=
Click for copyable input
Out[1]=
 
Vertical Gaussian derivative:
In[1]:=
Click for copyable input
Out[1]=
Horizontal Gaussian derivative:
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
 
Horizontal and vertical derivatives combined:
In[1]:=
Click for copyable input
Out[1]=
 
Apply a Gaussian filter to a list of values:
In[1]:=
Click for copyable input
Out[1]=
Compute an unsharp mask:
Add the unsharp mask to the original image:
Gaussian filtering of a binary image gives a grayscale image:
New in 7