How to add uniform noise to an image using imnoise. is there defind Description like 'gaussian', 'speckle' etc.
조회 수: 3 (최근 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!