# filterGabor2d

## PURPOSE

Creates an even/odd pair of 2D Gabor filters.

## SYNOPSIS

function [Feven,Fodd] = filterGabor2d( r, sig, lam, theta, omega, show )

## DESCRIPTION

     Creates an even/odd pair of 2D Gabor filters.

     Creates a pair of Gabor filters (one odd one even) at the specified
     orientation. For Thomas' ECCV98 filters, use sig=sqrt(2), lam=4.  Note
     that originally this function computed a quadratic masked with a
     Gaussian, and not a sin/cos masked with a Gaussian. Requires Matlab's
     'Signal Processing Toolbox'.

     USAGE
      [Feven,Fodd] = filterGabor2d( r, sig, lam, theta, [omega], [show] )

     INPUTS
      r       - final mask will be 2r+1 x 2r+1
      sig     - standard deviation of Gaussian mask
      lam     - elongation of Gaussian mask
      theta   - orientation (in degrees)
      omega   - [1] wavlength of underlying sine (sould be >=1)
      show    - [0] figure to use for optional display

     OUTPUTS
      Feven   - even symmetric filter (-cosine masked with Gaussian)
      Fodd    - odd symmetric filter (-sine masked with Gaussian)

     EXAMPLE
      [Feven,Fodd] = filterGabor2d(15,sqrt(2),4,45,1,1);
      [Feven,Fodd] = filterGabor2d(25,4,2,0,2,3);

     See also FILTERGABOR1D, FILTERGAUSS

     Piotr's Image&Video Toolbox      Version 2.12
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- filterVisualize Used to visualize a 1D/2D/3D filter.

This function is called by:

- FbMake Various 1D/2D/3D filterbanks (hardcoded).