
How to plot a Gaussian 2d of grayscale image
16 ビュー (過去 30 日間)
古いコメントを表示
I'm beginner in Matlab programming and I'm try to find a peak in grayscale image using gaussian fit.
I was trying this function: https://www.mathworks.com/matlabcentral/fileexchange/55033-fit-1d-and-2d-gaussian-to-noisy-data
but no luck; Is there any preprocessing image before applying this function.
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 11 月 11 日
編集済み: Ameer Hamza
2020 年 11 月 11 日
If you directly want to create an image matrix, the try something like this
[X, Y] = meshgrid(-3:0.01:3);
Z = exp(-X.^2-Y.^2);
Z = rescale(Z, 0, 1);
imshow(Z)

2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!