fit2dGabor(data,opt​ions)

Fit a 2d Gabor function to data with ease.

You are now following this Submission

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.
Important note:
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').

Cite As

Gerrit Ecke (2026). fit2dGabor(data,options) (https://au.mathworks.com/matlabcentral/fileexchange/60700-fit2dgabor-data-options), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1.0

Minor bug fixes on parsing "options.visualize" and other boolean option settings
Minor bug fixes on parsing "options.visualize" and other boolean option settings

1.0.0.0

-