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 > MedianFilter >

MedianFilter

MedianFilter
filters image by replacing every value by the median in its range r neighborhood.
MedianFilter
applies median filtering to an array of data.
  • MedianFilter finds the median in × blocks centered on each pixel.
  • At the edges of an image, MedianFilter uses smaller neighborhoods.
  • MedianFilter uses neighborhoods with vertical range and horizontal range .
  • For multichannel images, MedianFilter replaces each pixel by a pixel in its neighborhood that has the median total intensity, averaged over all channels.
Use a median filter to remove smaller stars from an astronomical image:
Blur an image using median filtering:
Remove noise from an ultrasound image:
Median filter of a vector:
Use a median filter to remove smaller stars from an astronomical image:
In[1]:=
Click for copyable input
Out[1]=
 
Blur an image using median filtering:
In[1]:=
Click for copyable input
Out[1]=
 
Remove noise from an ultrasound image:
In[1]:=
Click for copyable input
Out[1]=
 
Median filter of a vector:
In[1]:=
Click for copyable input
Out[1]=
Smoothen the background while preserving edge features:
Find the root median of an image:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF