GaborFilter[image, r, k]
filters image by convolving with a Gabor kernel of pixel radius r and wave vector k.

GaborFilter[image, r, k, ]
uses a Gabor kernel with phase shift .

GaborFilter[image, {r, }, ...]
uses a Gabor kernel with radius and standard deviation .

GaborFilter[data, ...]
applies Gabor filtering to an array of data.

Details and OptionsDetails and Options

  • GaborFilter is a linear filter commonly used for edge detection, as well as local frequency and orientation analysis.
  • GaborFilter works with arbitrary grayscale or multichannel images, operating separately on each channel.
  • GaborFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • GaborFilter[image, r, k] is equivalent to GaborFilter[image, {r, r/2}, k, 0].
  • GaborFilter allows any of r and to be lists, specifying different values for different directions.
  • GaborFilter[image, ...] by default gives a real image of the same dimensions as image.
  • GaborFilter can take the following options:
  • Padding"Fixed"padding method
    WorkingPrecisionAutomaticthe precision to use
    "Standardization"Truewhether to rescale the Gabor kernel to account for truncation
  • With a setting Padding->None, GaborFilter[image, ...] normally gives an image smaller than image.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Gabor filtering of an image:

Click for copyable input

Gabor filtering of an image to detect vertical lines in an image:

Click for copyable input

Apply a Gabor filter to a list of values:

Click for copyable input
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »