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
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!