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

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