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.

DetailsDetails

  • MeanFilter works with arbitrary grayscale and multichannel images, operating separately on each channel.
  • MeanFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • MeanFilter[image,r] computes the mean value in × blocks centered on each pixel.
  • At the edges of an image, MeanFilter uses smaller neighborhoods.
  • MeanFilter[image,{rrow,rcol}] uses range in height, and in width.
  • MeanFilter[image,{rslice,rrow,rcol}] uses range in height, in depth, and in width.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Mean filter of a list:

In[1]:=
Click for copyable input
Out[1]=

Mean filtering of a 2D image:

In[1]:=
Click for copyable input
Out[1]=

Mean filtering of a 3D volume:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)