HighpassFilter

HighpassFilter[data,ωc]

applies a highpass filter with a cutoff frequency ωc to an array of data.

HighpassFilter[data,ωc,n]

uses a filter kernel of length n.

HighpassFilter[data,ωc,n,wfun]

applies a smoothing window wfun to the filter kernel.

Details and Options

  • HighpassFilter is used to attenuate low frequencies in a signal while leaving the high-frequency components unchanged. The range of frequencies that is attenuated is dependent on the value of the cutoff frequency ωc. The range increases with larger values of ωc.
  • The data can be any of the following:
  • listarbitrary-rank numerical array
    tseriestemporal data such as TimeSeries and TemporalData
    imagearbitrary Image or Image3D object
    audioan Audio or Sound object
  • When applied to images and multidimensional arrays, filtering is applied successively to each dimension, starting at level 1. HighpassFilter[data,{ωc1,ωc2,}] uses the frequency ωci for the ^(th) dimension.
  • HighpassFilter[data,ωc] uses a filter kernel length and smoothing window suitable for the cutoff frequency ωc and the input data.
  • Typical smoothing windows wfun include:
  • BlackmanWindowsmoothing with a Blackman window
    DirichletWindowno smoothing
    HammingWindowsmoothing with a Hamming window
    {v1,v2,}use a window with values vi
    fcreate a window by sampling f between and
  • The following options can be given:
  • Padding"Fixed"the padding value to use
    SampleRateAutomaticsample rate assumed for the input
  • By default, SampleRate->1 is assumed for images as well as lists. For audio signals and time series, the sample rate is either extracted or computed from the input data.
  • With SampleRate->r, the cutoff frequency ωc should be between 0 and r×.

Examples

open allclose all

Basic Examples  (3)

Highpass filtering of a noisy sinusoidal sequence:

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

Highpass filtering of an Audio object:

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

Highpass filtering of an image:

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

Scope  (13)

Options  (3)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

See Also

LowpassFilter  LeastSquaresFilterKernel  ListConvolve  ImageConvolve

Introduced in 2012
(9.0)
| Updated in 2016
(11.0)