help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Varying noise percentage with imnoise


From: Andreas Weber
Subject: Re: Varying noise percentage with imnoise
Date: Sat, 05 Oct 2013 11:00:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9

Am 04.10.2013 04:12, schrieb Yathindu Rangana:
> imnoise (A, 'gaussian', 0, noiseLevel )
> 
> I'm varying noiseLevel (variance) from 0.0 to 1.0, assuming that 0.0 is
> 0% noise and 1.0 is 100%.
> 
> Is this assumption correct?

If you are unsure, you could also read the source of that function.
type "edit imnoise" and you will find

   A         = im2double (A);
   fix_class = true;
   if (nargin < 3), a = 0.00; endif
   if (nargin < 4), b = 0.01; endif
   A = A + (a + randn (size (A)) * sqrt (b));

HTH, Andy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]