how to implement a MATLAB function to add Gaussian noise ?
1 回表示 (過去 30 日間)
古いコメントを表示
I need to implement a function in Matlab to add Gaussian noise to an image let's say cameraman.tif but without using imnoise
Thanks in advance
0 件のコメント
回答 (3 件)
Rick Rosson
2012 年 4 月 7 日
function y = addWhiteNoise(x,snr)
%
% snr is the signal-to-noise ratio expressed in decibels
%
stdev = ...
z = stdev*randn(size(x));
y = x + z;
end
2 件のコメント
Rick Rosson
2012 年 4 月 7 日
Hi Mina,
What have you done so far? Please post your code.
Thanks!
Rick
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!