Gabor-function convolution masks are increasingly used in image processing and computer vision. This function simply computes the cosine and sine masks for a given width, period and orientation. The masks returned are properly normalised.
It is not highly optimised - e.g. the symmetries are not used to reduce the computation.
It is recommended that convolutions with these masks are done using CONVOLVE2 (available from Matlab File Exchange) to take advantage of their low rank.
David Young (2022). Gabor function masks (https://www.mathworks.com/matlabcentral/fileexchange/22618-gabor-function-masks), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!