how to create noise manually to a color image without imnoise function explain with example?

5 ビュー (過去 30 日間)
ARUN SAI
ARUN SAI 2013 年 4 月 17 日
回答済み: muhammad khatib 2020 年 11 月 3 日
how to create noise manually to a color image without imnoise function explain with example?

回答 (2 件)

Iman Ansari
Iman Ansari 2013 年 4 月 17 日
Hi. For gaussian noise with standard deviation of S:
clear
S = 20;
I = imread('peppers.png');
J = double(I) + S.*randn(size(I));
figure;
subplot(121)
imshow(I)
title('Original Image')
subplot(122)
imshow(J./255)
title('Additive Gaussian Noise')

muhammad khatib
muhammad khatib 2020 年 11 月 3 日
clear
S = 20;
I = imread('peppers.png');
J = double(I) + S.*randn(size(I));
figure;
subplot(121)
imshow(I)
title('Original Image')
subplot(122)
imshow(J./255)
title('Additive Gaussian Noise')

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by