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

MeanFilter

MeanFilter[image, r]
filters image by replacing every value by the mean value in its range r neighborhood.
MeanFilter[data, r]
applies mean filtering to an array of data.
  • MeanFilter[image, r] computes the mean value in (2r+1)×(2r+1) blocks centered on each pixel.
  • At the edges of an image, MeanFilter uses smaller neighborhoods.
  • MeanFilter[image, {r1, r2}] uses neighborhoods with vertical range r1 and horizontal range r2.
  • MeanFilter operates separately on each channel in an image.
  • In MeanFilter[data, ...], 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 ultra-sound 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 ultra-sound 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]=
New in 7