i'm confused about the function imnoise
Show older comments
I debuged the function imnoise to add Gaussian noise. I entered following code
f = zeros(255);
noisedImg = imnoise(f, 0, 0.01);
Then I looked at the noisedImg data and found that all pixel values were greater than or equal to zero. I mean that pixel values should be distributed nearly to zero, some are greater than zero and others may be less than zero. I'm puzzled that why there are no pixel values less than zero.
Accepted Answer
More Answers (1)
Walter Roberson
on 2 Apr 2016
0 votes
That is not a supported syntax for imnoise, which requires that you pass a string indicating the kind of noise to add.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!