How to add uniform noise to an image using imnoise. is there defind Description like 'gaussian', 'speckle' etc.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How to add uniform noise to an image using imnoise. is there defined Description like 'gaussian', 'speckle' etc.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 30 Mär. 2013
imnoise() does not support uniform noise.
NewImage = OldImage + scale * rand(size(OldImage));
where scale is the maximum magnitude you want to use.
Note: if the image is a floating point data class, you should use
NewImage = min(1, OldImage + scale * rand(size(OldImage)));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!