필터 지우기
필터 지우기

how to implement a MATLAB function to add Gaussian noise ?

조회 수: 1 (최근 30일)
mina
mina 2012년 4월 6일
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

답변 (3개)

Rick Rosson
Rick Rosson 2012년 4월 7일

Rick Rosson
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
mina
mina 2012년 4월 7일
thanks for your help.
but this is what i need to do exactly:-
implement a MATLAB function to add Gaussian noise to the image “Cameraman.tif” and compute the signal-to-noise ratio (SNR)
Walter Roberson
Walter Roberson 2012년 4월 7일
Okay, go ahead and do that.

댓글을 달려면 로그인하십시오.


Rick Rosson
Rick Rosson 2012년 4월 7일
Hi Mina,
What have you done so far? Please post your code.
Thanks!
Rick

카테고리

Help CenterFile Exchange에서 Detection에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by