function gauss2dfit
Fit a two-dimensional gaussian to a rectangular grid (i.e. an image).
Syntax
result = gauss2dfit(image, errors, estimate [, chisq])
Arguments
image: | The image to be fit |
errors: | The errors in the image values |
estimate: | Initial estimate for the fit of the form [Offset,Max,x0,y0,fwhm1,fwhm2,angle] |
chisq: | If set to a named variable, the variable is overwritten with the chi-squared of the fit. |
Returns
The returned vector contains the best-fit parameters in the form [Offset, Max, x0, y0, fwhm1, fwhm2, angle, d_Offset, d_Max, d_x0, d_y0, d_fwhm1, d_fwhm2, d_angle]
See also
function gauss2dsimplefit
function multigauss2dfit