2D Rotated Gaussian Fit

Function will fit a 2D gaussian function. It will also find the rotation angle for the 2D gaussian.

You are now following this Submission

Matlab's Surface fitting does not (yet) include fairly standard defined surfaces. The present contribution is a simple implementation of the surface fit to the problem of fitting a 2D gaussian to an observed object in an image. Keep the image size small in order not to suffocate the fitting routine.

Gauss2DRotFit requires an input in the form of a 2D intensity image of the 2D gaussian. It also accepts as a second input an structure defining the lower, upper bounds as well as a best guess of the 7 fit parameters. The structure has 3 fields: 'Lower','StartingPoint' and 'Upper'. A title string may be provided as a third input parameter.

Cite As

Steffen B. Petersen (2026). 2D Rotated Gaussian Fit (https://uk.mathworks.com/matlabcentral/fileexchange/39448-2d-rotated-gaussian-fit), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: gaussfitn

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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