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


uses a filter kernel of length n.


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


open all close all

Basic Examples  (3)

Highpass filtering of a noisy sinusoidal sequence:

Click for copyable input

Highpass filtering of an Audio object:

Click for copyable input

Highpass filtering of an image:

Click for copyable input

Scope  (13)

Options  (3)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

Introduced in 2012
Updated in 2016