2D Rotated Gaussian Fit

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

2.2K Downloads

Updated Wed, 12 Dec 2012 17:52:08 +0000

View License

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 (2023). 2D Rotated Gaussian Fit (https://www.mathworks.com/matlabcentral/fileexchange/39448-2d-rotated-gaussian-fit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: gaussfitn

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0