Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Filtering & Neighborhood Processing >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team