2D Rotated Gaussian Fit
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 .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: gaussfitn
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
