代码使用如下:
function [G,gabout] = gaborfilter1(I,Sx,Sy,f,theta);
from 'gaborfilter1' with different f(Frequency) and theta(Angle).
for example
f:0,2,4,8,16,32
theta = 0,pi/3,pi/6,pi/2,3pi/4
then for any input image like(eg. stereo.jpg)
you have 6x5 = 30 filtered images.
You can choose your desired angles or frequencies.
You can put nominaly Sx & Sy = 2,4 or some one else.
For instance I tested above example on ('cameraman.tif')(in MATLAB pictures)
I = imread('cameraman.tif');
[G,gabout] = gaborfilter1(I,2,4,16,pi/3);
figure,imshow(uint8(gabout));