plz help me in this question
Mostra commenti meno recenti
imnoise(I,'gaussian',0.1*5e-6); in the above line why it is 0.1*5e-6 is written.
2 Commenti
John D'Errico
il 21 Lug 2017
Modificato: John D'Errico
il 21 Lug 2017
Why not just read the help for imnoise? There you will find a complete explanation of the parameters for imnoise. Instead, you want someone else to re-write the help for you here?
TUSHAR MURATKAR
il 21 Lug 2017
Risposta accettata
Più risposte (2)
Alvi Newaz
il 21 Lug 2017
0 voti
The 0.1*5e-6 is the mean of the Gaussian noise added.
1 Commento
TUSHAR MURATKAR
il 21 Lug 2017
Image Analyst
il 21 Lug 2017
Because the programmer made a mistake, in my opinion, by not being explicit. According to the help:
J = imnoise(I,'gaussian',M,V) adds Gaussian white noise of mean m and variance v to the image I. The default is zero mean noise with 0.01 variance.
so it should take 2 numbers after 'gaussian', not one like they had. Perhaps they meant:
noisyImage = imnoise(I,'gaussian',0.1, 5e-6);
where there is a comma instead of a *, but who knows. You need to ask the programmer.
If they put just one number, the number would be the mean, not the variance. The variance would take on the default value of 0.01
1 Commento
TUSHAR MURATKAR
il 21 Lug 2017
Categorie
Scopri di più su Data Import and Analysis in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!