Fitting a 2D Gaussian function using scipy.optimize.curve_fit – ValueError and minpack.error
I intend to fit a 2D Gaussian function to images showing a laser beam to get its parameters like FWHM and position. So far I tried to understand how to define a 2D Gaussian function in Python and how to pass x and y variables to it.