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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!