RangeFilter

RangeFilter[data,r]

filters data by replacing every value by the difference of the maximum and minimum in its range-r neighborhood.

RangeFilter[data,{r1,r2,}]

uses ri for filtering the ^(th)dimension in data.

Details

  • RangeFilter is used to detect local jumps in data, where the size of the local neighborhood is dependent on the value of r.
  • The function applied to each range-r neighborhood is the absolute difference of MinMax.
  • The data can be any of the following:
  • listarbitrary-rank numerical array
    tseriestemporal data such as TimeSeries, TemporalData,
    imagearbitrary Image or Image3D object
    audioan Audio object
  • For multichannel images and audio signals, RangeFilter operates separately on each channel.
  • RangeFilter[data,{r1,r2,}] computes the range of sample values in blocks centered on each sample.
  • RangeFilter assumes the index coordinate system for lists and images.
  • At the data boundaries, RangeFilter uses smaller neighborhoods.

Examples

open allclose all

Basic Examples  (3)

Range filtering of a list:

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

Filter a TimeSeries:

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

Range filtering applied to a color image:

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

Scope  (11)

Applications  (2)

Properties & Relations  (1)

See Also

MinMax  EdgeDetect  MinFilter  MaxFilter  GradientFilter

Introduced in 2010
(8.0)
| Updated in 2015
(10.2)