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

MeanFilter

MeanFilter
filters image by replacing every value by the mean value in its range r neighborhood.
MeanFilter
applies mean filtering to an array of data.
  • MeanFilter works with arbitrary grayscale and multichannel images, as well as numerical arrays.
  • MeanFilter operates separately on each channel in an image.
  • MeanFilter computes the mean value in × blocks centered on each pixel.
  • At the edges of an image, MeanFilter uses smaller neighborhoods.
  • MeanFilter uses neighborhoods with vertical range and horizontal range .
  • In MeanFilter, data can be an array of any rank, and can contain symbolic as well as numerical entries.
Mean filtering of a color photo:
Denoise an ultrasound image with mean filtering:
Mean filter of a vector:
Mean filtering of a color photo:
In[1]:=
Click for copyable input
Out[1]=
 
Denoise an ultrasound image with mean filtering:
In[1]:=
Click for copyable input
Out[1]=
 
Mean filter of a vector:
In[1]:=
Click for copyable input
Out[1]=
Mean filter of a symbolic vector:
New in 7