Generates Gabor filters using bandwidth, aspect ratio, phase, wavelength and angle as parameters.
Author: Gao Yang
Very good implementation. And good job normalizing it! What I do notice is: you seem to do (a+b).^2 to get the modulus of the result. I thought for a complex number a+bj, you are supposed to do a.^2+b.^2 for the modulus. Lucky enough for this case, the cross term 2ab is simply zero because we are summing some trigonometric functions from 0 to 2pi.