how to implement a MATLAB function to add Gaussian noise ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (3)
Rick Rosson
le 7 Avr 2012
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 commentaires
Rick Rosson
le 7 Avr 2012
Hi Mina,
What have you done so far? Please post your code.
Thanks!
Rick
0 commentaires
Voir également
Catégories
En savoir plus sur Detection dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!