RangeFilter[image, r]
filters image by replacing every pixel by the difference of the maximum and minimum in its range-r neighborhood.

RangeFilter[data, r]
applies a range filter to an array of data.


  • RangeFilter[image, r] finds the range in blocks centered on each pixel.
  • At the edges of an image, RangeFilter uses smaller neighborhoods.
  • RangeFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • RangeFilter[image, {rrow, rcol}] uses range in height, and in width.
  • RangeFilter[image, {rslice, rrow, rcol}] uses range in height, in depth, and in width.
  • For multichannel images, RangeFilter[image, ...] replaces each pixel by the difference of the pixels in its neighborhood that have maximum and minimum total intensity, averaged over all channels.
  • When applied to multichannel images, RangeFilter operates on each channel separately.
  • RangeFilter returns an image of the same type and the same dimensions as the original image.
New in 8 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »