RangeFilter

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.

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Range filtering used for edge detection:

In[1]:=
Click for copyable input
Out[1]=

Range filtering of a 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
| Updated in 2012
(9.0)