How to add uniform noise to an image using imnoise. is there defind Description like 'gaussian', 'speckle' etc.
2 ビュー (過去 30 日間)
古いコメントを表示
How to add uniform noise to an image using imnoise. is there defined Description like 'gaussian', 'speckle' etc.
0 件のコメント
採用された回答
Walter Roberson
2013 年 3 月 30 日
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!