4.5

4.5 | 2 ratings Rate this file 103 downloads (last 30 days) File Size: 72.07 KB File ID: #13776

Improved 2D Gabor Filter

by Stiven Schwanz Dias

 

26 Jan 2007 (Updated 02 Jun 2008)

Code covered by the BSD License  

Bi-dimensional Gabor filter with DC component compensation.

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.0.4 (R14SP2)
Zip File Content  
Other Files lena.jpg,
colormaps.mat,
gaborfilter.m,
gabortest.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
04 Feb 2008 archna kamthe

can use for research work.

28 Apr 2008 Heba Gamal

hi thank you for providing gabor filter for the research i think this will be so usefull
but would you please tell what do these variable mean(I,S,F,W,P)
i think I is the input image but what are the rest of variable stand for
thank you

14 Oct 2008 Samuel Rivera

This will save me time in my research! Thanks.
Some help about parameters:

S: related to variance for Gaussian envelope.
(F, W): polar frequency (frequency, angle) for sinusoid.
P: phase of sinusoid.

from documentation in function as well as Movellan, J. R. section 2.1 and 2.2

15 Oct 2008 A Mahesh

usage of gabor filter

Please login to add a comment or rating.
Updates
02 Jun 2008

New demo file.

Tag Activity for this File
Tag Applied By Date/Time
filtering Stiven Schwanz Dias 22 Oct 2008 08:58:26
gabor filter Stiven Schwanz Dias 22 Oct 2008 08:58:26
bidimensional Stiven Schwanz Dias 22 Oct 2008 08:58:26
im Stiven Schwanz Dias 22 Oct 2008 08:58:26
dc component compensation Stiven Schwanz Dias 22 Oct 2008 08:58:26
gabor filter Costas Tsaousidis 05 Mar 2009 17:40:27
bidimensional Costas Tsaousidis 14 Mar 2009 05:11:27
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com