how to input image to 2 D gaussian

1 回表示 (過去 30 日間)
Terry McGinnis
Terry McGinnis 2015 年 6 月 17 日
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 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by