1D


Note the size and ellipticity of the Gabor function, and standard deviation of the Gaussian are variable.
The filter then applies this function to the image, emphasizing edges along the rotation of the Gaussian envelope.
Below are several examples of applying different orientations of the Gabor function to an image.
pi/4





Note a wavelength of 10 and a circular (ellipticity = 1) are used with a StD of ~5.6.
Each orientation map is created in the usual way, by taking differences of several scales of the filtered image.
J Movellan, Tutorial on Gabor Filters
OpenCV implementation: http://www.personal.reading.ac.uk/~sir02mz/CGabor/example.html