This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.

# MedianFilter

 MedianFilter[image, r]filters image by replacing every value by the median in its range r neighborhood. MedianFilter[data, r]applies median filtering to an array of data.
• MedianFilter[image, r] finds the median in (2r+1)×(2r+1) blocks centered on each pixel.
• At the edges of an image, MedianFilter uses smaller neighborhoods.
• MedianFilter[image, {r1, r2}] uses neighborhoods with vertical range r1 and horizontal range r2.
• For multichannel images, MedianFilter[image, ...] replaces each pixel by a pixel in its neighborhood that has the median total intensity, averaged over all channels.
• In MedianFilter[data, ...], data can be an array of any rank.
Blur an image using median filtering:
Remove noise from an ultra-sound image:
Use a median filter to remove salt-and-pepper noise from an image:
Median filter of a vector:
Blur an image using median filtering:
 Out[1]=

Remove noise from an ultra-sound image:
 Out[1]=

Use a median filter to remove salt-and-pepper noise from an image:
 Out[1]=

Median filter of a vector:
 Out[1]=
 Applications   (1)
Smoothen the background while preserving edge features:
Find the root median of an image:
New in 7