Project
Project
Restore the blurred image by using the deconvwnr function. The blurred image
does not have noise so you can omit the noise-to-signal (NSR) input argument.
wnr1 = deconvwnr(blurred,PSF);
imshow(wnr1)
title('Restored Blurred Image')
Try to restore the blurred noisy image by using deconvwnr without providing a
noise estimate. By default, the Wiener restoration filter assumes the NSR is
equal to 0. In this case, the Wiener restoration filter is equivalent to an ideal
inverse filter, which can be extremely sensitive to noise in the input image.
In this example, the noise in this restoration is amplified to such a degree that
the image content is lost.
wnr2 = deconvwnr(blurred_noisy,PSF);
imshow(wnr2)
title('Restoration of Blurred Noisy Image (NSR = 0)')
Try to restore the blurred noisy image by using deconvwnr with a more
realistic value of the estimated noise.
signal_var = var(Idouble(:));
NSR = noise_var / signal_var;
wnr3 = deconvwnr(blurred_noisy,PSF,NSR);
imshow(wnr3)
title('Restoration of Blurred Noisy Image (Estimated NSR)')