Very simple to use function to fit a 2d Gabor function to given data. Input is a 2d matrix. Works well and robustly with standard settings but can be customized with further options. Methods used are documented in the function help.
If you want to perform a test run try the demo.m file. We provide a set of more or less Gabor-like input samples of rather bad quality to demonstrate performance (see also image).
For any questions please feel free to contact the authors. Also, please submit bug reports. If you end up using this function we would be happy to hear from you.
Standard behaviour is to fit a Gabor function with elliptical envelope (options.shape='elliptical'). However, the standard circular Gaussian envelope is also implemented as an option (options.shape='equal').
Gerrit Ecke (2023). fit2dGabor(data,options) (https://www.mathworks.com/matlabcentral/fileexchange/60700-fit2dgabor-data-options), 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!