You are on page 1of 2

Experiment No.

2
Aim: To study blurring and deblurring of images. Apparatus: MATLAB 7.5.0(R2007b) Program Coding:
Step 1: Read Image The example reads in an intensity image. The deconvblind function can handle arrays of any dimension. I = imread('cameraman.tif'); figure;imshow(I);title('Original Image'); text(size(I,2),size(I,1)+15, ... 'Image courtesy of Amity school of engineering & technology', ... 'FontSize',7,'HorizontalAlignment','right'); Step 2: Simulate a Blur PSF = fspecial('gaussian',7,10); Blurred = imfilter(I,PSF,'symmetric','conv'); figure;imshow(Blurred);title('Blurred Image');

Step 3: Restore the Blurred Image Using PSFs of Various Sizes INITPSF = padarray(UNDERPSF,[2 2],'replicate','both'); [J3 P3] = deconvblind(Blurred,INITPSF); figure;imshow(J3);title('Deblurring with INITPSF');

Observation:

Result: The blurring and deblurring of images is successfully studied.

You might also like