How can I put two noises in an image?

1 回表示 (過去 30 日間)
Ju Hee Hwang
Ju Hee Hwang 2019 年 8 月 29 日
コメント済み: Ju Hee Hwang 2019 年 8 月 29 日
-my code(diagonal noise)-
clc
k=imread('clue.jpg');
k=rgb2gray(k);
k=double(k);
[x,y]=meshgrid(1:512,1:512);
p=1+sin(x+y);
tp=(k/128+p)/4;
imshow(tp)
-my code(Vertical noise)-
clc
k=imread('clue.jpg');
k=rgb2gray(k);
k=double(k);
sig=30/255;
k(:,:) = k(:,:)/255;
for i=1:3:512
y=randn;
k(:,i) = k(:,i) + sig*y;
end
imshow(k)
I want to put these two noises in one image.
What should I do?

採用された回答

KSSV
KSSV 2019 年 8 月 29 日
How about
imshow((tp+k)/2)
  1 件のコメント
Ju Hee Hwang
Ju Hee Hwang 2019 年 8 月 29 日
Thank you!
Succeeded:)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by