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


filters image by replacing every pixel by the difference of the maximum and minimum in its range r neighborhood.
applies a range filter to an array of data.
  • RangeFilter finds the range in blocks centered on each pixel.
  • At the edges of an image, RangeFilter uses smaller neighborhoods.
  • RangeFilter uses neighborhoods with vertical range and horizontal range .
  • For multichannel images, RangeFilter 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.
Range filtering used for edge detection:
Range filtering used for edge detection:
Click for copyable input
Range filtering applied to a color image:
New in 8