DSP Report1 Merged
DSP Report1 Merged
1. Introduc on 1
2. Flowchart 2
Output:-
ALGORITHM:-
1.Reads the input image.
2.A disk filter of radius 8 pixels generated.
3.Blurring the Image:-
Convolu on of the grayscale image with the disk
filter to simulate blurring.
4.Adding Noise:
Adds Gaussian white noise to the blurred image at
three different levels of variance.
5.FFT Transforma on:
Performs FFT (Fast Fourier Transform) on the
original and noisy blurred images.
6.Deblurring:
Deconvolves the blurred images with the FFT of
the PSF to a empt to recover the original image.
Detailed Algorithm:-
To recover the original image X from the noisy
image Y and the known filter H(disk filter), we can
use the inverse filtering approach. However,
inverse filtering is sensi ve to noise and can
amplify noise and ar facts in the image,
par cularly if the noise is significant or the filter H
has zeros in its frequency response. It is generally
not recommended unless you have a noise-free
environment or precise knowledge of the filter.
The inverse filtering approach a empts to es mate
the original image X by dividing the noisy image Y
by the filter H in the frequency domain. This is
equivalent to performing deconvolu on.
%zero pad the psf to match the size of the blurred image
%noisy images are all the same size ,thus do not require unique PSF's
newh=zeros(size(yblur));
psfsize=size(PSF);
disp(psfsize)
newh(1:psfsize(1),1:psfsize(2))=PSF;
H=fft2(newh);