In following image ,apply average filter to image with Gaussian noise.
Code:
I = imread('cameraman.tif'); %% Show current image. imshow(I); figure; G=imnoise(I,'gaussian',0.0005,0.0019); imshow(G); figure; h = fspecial('average', 3); F=imfilter(G,h); imshow(F);
Attachments:
1.GIF [ 28.46 KiB | Viewed 25767 times ]
_________________ M. S. Rakha, Ph.D. Queen's University Canada