how to input image to 2 D gaussian

3 views (last 30 days)
Terry McGinnis
Terry McGinnis on 17 Jun 2015
I need to implement a 2d gaussian fitting only want to fit a circularly-symmetric Gaussian.I am modifying the code given in:
by g.nootz.i need to put in the values of data obtained from my image. But I am not able to modify the code as stated in the comment by Nathan neff-mallon .Im a stuck in this part:
change line 38 to [X,Y] = meshgrid(x,y); where x and y a vectors with your x an y axis points change line 47 to Z = zdata; where zdata is a length(x) by length(y) matrix with the data you wish to fit such that zdata(i,j)=z(x_i,y_j).

Answers (0)

Community Treasure Hunt

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

Start Hunting!