Improved 2D Gabor Filter

Bi-dimensional Gabor filter with DC component compensation.
9.3K Downloads
Updated Mon, 02 Jun 2008 07:11:45 +0000

View License

This version of the 2D Gabor filter [1] is basically a bi-dimensional Gaussian function centered at origin (0,0) with variance S modulated by a complex sinusoid with polar frequency (F,W) and phase P described by the following equation:

G(x,y,S,F,W,P)=k*Gaussian(x,y,S)*(Sinusoid(x,y,F,W,P)-DC(F,S,P)),
where:
Gaussian(x,y,S)=exp(-pi*S^2*(x^2+y^2))
Sinusoid(x,y,F,W,P)=exp(j*(2*pi*F*(x*cos(W)+y*sin(W))+P)))
DC(F,S,P)=exp(-pi*(F/S)^2+j*P)

The following reference will be helpful to understand how setting the Gabor parameters:
[1] Movellan, J. R. - Tutorial on Gabor Filters. Tech. rep., 2002.

Cite As

Stiven Schwanz Dias (2024). Improved 2D Gabor Filter (https://www.mathworks.com/matlabcentral/fileexchange/13776-improved-2d-gabor-filter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

New demo file.