Median Image Filter


The MedianImageFilter is commonly used as a robust approach for noise reduction. This filter is particularly efficient against “salt-and-pepper” noise. In other words, it is robust to the presence of gray-level outliers. MedianImageFilter computes the value of each output pixel as the statistical median of the neighborhood of values around the corresponding input pixel.

Panels and their use

Median Filter Parameters: Parameters for the median filter

  • Neighborhood Size (neighborhood): The size of the neighborhood in each dimension

IO: Input/output parameters

  • Input Volume (inputVolume): Input volume to be filtered

  • Output Volume (outputVolume): Output filtered


Bill Lorensen (GE)


This command module was derived from Insight/Examples/Filtering/MedianImageFilter (copyright) Insight Software Consortium