| GABOR2D | Generate a two-dimensional gabor matrice. |
| Usage: | >> [ matrix ] = gabor2d(rows, columns); >> [ matrix ] = gabor2d( rows, columns, freq, angle, sigmaR, sigmaC, meanR, meanC, dephase, cut) |
| Example : | >> imagesc(gabor2d( 50, 50)) |
| Inputs: | |
rows |
number of rows |
columns |
number of columns |
freq |
frequency of the sinusoidal function in degrees (default: 360/rows) |
angle |
angle of rotation of the resulting 2-D array in degrees of angle {default: 0}. |
sigmaR |
standard deviation for rows {default: rows/5} |
sigmaC |
standard deviation for columns {default: columns/5} |
meanR |
mean for rows {default: center of the row} |
meanC |
mean for columns {default: center of the column} |
dephase |
phase offset in degrees {default: 0}. A complex Gabor wavelet can be build using gabor2dd(...., 0) + i*gabor2d(...., 90), 0 and 90 being the phase offset of the real and imaginary parts |
cut |
percentage (0->1) of maximum value below which to remove values from the matrix {default: 0} |
| Ouput: | |
matrix |
output gabor matrix |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |