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.

DetailsDetails

  • MedianFilter works with arbitrary grayscale and multichannel images, as well as numerical arrays.
  • For multichannel images, MedianFilter[image,] replaces each pixel by a pixel in its neighborhood that has the median total intensity, averaged over all channels.
  • MedianFilter[image,r] finds the median in × blocks centered on each pixel.
  • At the edges of an image, MedianFilter uses smaller neighborhoods.
  • MedianFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • MedianFilter[image,{rrow,rcol}] uses range in height, and in width.
  • MedianFilter[image,{rslice,rrow,rcol}] uses range in height, in depth, and in width.
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)