how to implement a MATLAB function to add Gaussian noise ?
Mostrar comentarios más antiguos
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
Respuestas (3)
Rick Rosson
el 7 de Abr. de 2012
>> doc randn
Rick Rosson
el 7 de Abr. de 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 comentarios
mina
el 7 de Abr. de 2012
Walter Roberson
el 7 de Abr. de 2012
Okay, go ahead and do that.
Rick Rosson
el 7 de Abr. de 2012
0 votos
Hi Mina,
What have you done so far? Please post your code.
Thanks!
Rick
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!