How can I put two noises in an image?

1 visualización (últimos 30 días)
Ju Hee Hwang
Ju Hee Hwang el 29 de Ag. de 2019
Comentada: Ju Hee Hwang el 29 de Ag. de 2019
-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?

Respuesta aceptada

KSSV
KSSV el 29 de Ag. de 2019
How about
imshow((tp+k)/2)

Más respuestas (0)

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by