anyone can tell me how to remove the periodic noise from the image? what filter should i use?

2 views (last 30 days)
here is my code for adding periodic noise into colour image
A=imread('Lena.bmp');
B8=double(A);
s=size(A);
[x,y]=meshgrid(1:s(1),1:s(2));
p=round(50*sin(x./3+y./5)+1);
B8(:,:,1)=B8(:,:,1)+p;
B8(:,:,2)=B8(:,:,2)+p;
B8(:,:,3)=B8(:,:,3)+p;
for i=1:s(1),
for j=1:s(2),
for k=1:s(3),
if B8(i,j,k) < 0;
B8(i,j,k) = 0;
end
if B8(i,j,k) > 255;
B8(i,j,k) = 255;
end
end
end
end
B=uint8(B8);
figure,imshow(B);

Answers (0)

Community Treasure Hunt

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

Start Hunting!