Search This Blog

MATLAB Program to blur an image

clc

clear all

close all

x=imread('Golden.jpg');

imshow(x)

ag=fspecial('average',[10,10]);

g=imfilter(x,ag);

imshow(g)

 

Code for animation;

clc

clear all

close all

x=imread('Golden.jfif');

for i=1:30

ag=fspecial('average',[i,i]);

g=imfilter(x,ag);

imshow(g);

drawnow;

end

 

No comments