添加周期噪声
概念
代码
t=imread('a1.jpg');
[m,n]=size(t);
t_1=t;
for i=1:m
for j=1:n
t_1(i,j)=t(i,j)+40*sin(40*i)+40*sin(40*j);
end
end
imshow(t),title('原图');
figure,imshow(t_1),title('加入周期噪声后');
结果
概念
代码
t=imread('a1.jpg');
[m,n]=size(t);
t_1=t;
for i=1:m
for j=1:n
t_1(i,j)=t(i,j)+40*sin(40*i)+40*sin(40*j);
end
end
imshow(t),title('原图');
figure,imshow(t_1),title('加入周期噪声后');
结果