how to input image to 2 D gaussian
1 次查看(过去 30 天)
显示 更早的评论
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).
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!