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

GaussianFilter

GaussianFilter
filters image by convolving with a Gaussian kernel of pixel radius r.
GaussianFilter
convolves image with a kernel formed from the ^(th) derivatives of the discrete Gaussian.
GaussianFilter[image, {r, }, ...]
uses a Gaussian kernel with radius and standard deviation .
GaussianFilter
uses radii etc. in vertical and horizontal directions.
GaussianFilter
applies Gaussian filtering to an array of data.
  • GaussianFilter is a linear smoothing filter commonly used in image processing applications.
  • GaussianFilter works with arbitrary grayscale or multichannel images, operating separately on each channel.
  • GaussianFilter by default gives a real image of the same dimensions as image.
  • GaussianFilter computes the ^(th) Gaussian derivative of the vertical dimension in image and the ^(th) horizontal derivative.
Method"Bessel"how to determine elements of the Gaussian matrix
Padding"Fixed"padding method
WorkingPrecisionAutomaticthe precision to use
"Standardization"Truewhether to rescale and shift the Gaussian matrix to account for truncation
  • Possible settings for the Method option are and .
  • In GaussianFilter, data can be an array of any rank, and can contain symbolic as well as numerical entries.
Gaussian filter of a 3-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 3-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:
When GaussianFilter is applied to multidimensional data, an explicit convolution range can be specified for each dimension:
This blurs the color channel data only:
Gaussian filtering of a binary image gives a grayscale image:
New in 7 | Last modified in 8