Analysis and Comparison On Image Restoration Algorithms Using Matlab IJERTV2IS120564 PDF
Analysis and Comparison On Image Restoration Algorithms Using Matlab IJERTV2IS120564 PDF
ISSN: 2278-0181
Vol. 2 Issue 12, December - 2013
Admore Gota
School of Electronics Engineering, Tianjin University of Technology and Education (TUTE),
Tianjin P.R China.
Abstract
However, due to imperfections in the imaging and
capturing process, the recorded image invariably
TheImage restoration is the recovery of an represents a degraded version of the original scene.
image that has been degraded by blur and noise. The undoingof these imperfections is crucial to
Degradation typically involves blurring of the many of the subsequent image processing tasks. A
original image and corruption noise. The recovery wide range of degradations such as noise,
of an original image from degraded observations is geometrical degradations, illumination and color
RT
of paramount importance and can find its imperfections and blur. This paper concentrates on
application in several scientific areas including basic methods for removing blur and noise, in this
medical and diagnostics, military case Gaussian, Salt and Pepper and Speckle noise
surveillance,satellite and astronomical imaging, from recorded and spatially images.
IJE
A.No Blur
4. Noise Models
Figure 2: Image degraded by Gaussian noise Is a multiplicative noise. This type of noise occurs
with different mean and variance values in almost all coherent imaging systems such
aslaser, acousticsand SAR (Synthetic Aperture
Radar) imaginery. The source of this noise is
attributed to random interference between the
B. Salt and Pepper Noise
coherent returns. Fully developed speckle noise has
the characteristic of multiplicative noise. Speckle
Is an impulse type of noise, which is also referred noise follows a gamma distribution and is given as
to as intensity spikes. This is caused generally due
RT
to errors in data transmission. It has only two
possible values, a and b. The probability of each is
typically less than 0.1. The corrupted pixels are set
IJE
C. Lucy-Richardson algorithm
relied upon.
6. Software Algorithm
A. Wiener Filter
% Digital Image Processing
This filter can be used effectively when the
frequency characteristics of the image and additive Clc;
noise are known, to at least some degree. Wiener Close all;
filters are often applied in the frequency domain. FltInitialCpuTime = cputime;
An important advantage of this algorithm is that it
removes the additive noise and inverts the blurring ImgTemp = imread ('Gota.jpg', 'jpg');
simultaneously. A demerit of the Wiener filters is % Normalize Image
that they are unable to reconstruct frequency imgTissue1 = double (imgTemp). / 255;
components which have been degraded by noise,
but can only suppress them. These filters are %-----------------------------------------------------------
comparatively slow to apply, since they require --------------------
working in the frequency domain. The spatially % Part 1 - Convert image to gray level
truncated Wiener filter is inferior to the frequency %[X, map] = rgb2ind (imgTissue1, 256);
domain version, but may be much faster. %imgTissue1 = ind2gray(X, map);
%imwrite (imgTissue1, 'Gota.jpg', 'jpg');
B. Regularized Filter
%-----------------------------------------------------------
--------------------
Regularized filtering constraints are applied on the
% Part 2 - Generation of Gaussian noise matrix
recovered image (e.g. smoothness) and limited
vctTissue1Size = size(imgTissue1);
information is known about the additive noise. The
MxGaussianNoise = 0.1.* randn
blurred and noisy image is restored by a
(vctTissue1Size (1), vctTissue1Size (2));
constrained least square restoration algorithm that
use a regularizedfilter. Although the Wiener
imagesc (imgTissue1Regular1);
%----------------------------------------------------------- title('Regular Filter With No Noise
-------------------- Power');
% Part 5 - Autocorrelation Functions subplot(224);
mxTissue1Autocorrelation = imagesc(imgTissue1Regular2);
fftshift(real(ifft2(imgTissue1Spectrum))); title('Regular Filter Using Noise Power');
mxGaussianNoiseAutocorrelation =
fftshift (real (ifft2(mxGaussianNoiseSpectrum))); %-----------------------------------------------------------
--------------------
%----------------------------------------------------------- % Part 8 - Lucy-Richardson Filtering
-------------------- imgTissue1LucyRichardson1 =
% Part 6 - Wiener Filtering deconvlucy(imgTissue1BlurAndNoise, filterPSF,
imgTissue1Weiner1 = deconvwnr 5);
(imgTissue1BlurAndNoise, filterPSF); imgTissue1LucyRichardson2 =
imgTissue1Weiner2 = deconvwnr deconvlucy(imgTissue1BlurAndNoise, filterPSF,
(imgTissue1BlurAndNoise, filterPSF, fltNSR); 3);
imgTissue1Weiner3 =
deconvwnr(imgTissue1BlurAndNoise, filterPSF, figure('Name', 'Lucy-Richardson Filter',
mxGaussianNoiseAutocorrelation, 'NumberTitle', 'off', 'MenuBar', 'none');
mxTissue1Autocorrelation); colormap(gray);
subplot(221);
figure('Name', 'Wiener Filter', imagesc(imgTissue1);
'NumberTitle', 'off', 'MenuBar', 'none'); title('Original Image');
colormap(gray); subplot(222);
subplot(321); imagesc(imgTissue1BlurAndNoise);
imagesc(imgTissue1); title('Degraded Image');
title('Original Image'); subplot(223);
subplot(322); imagesc(imgTissue1LucyRichardson1);
imagesc(imgTissue1BlurAndNoise);
disp('Done.');
%-----------------------------------------------------------
--------------------
7. Simulation Results
Step 3
Fig.2: Converted grayscale image (Gota_gray.jpg)
A PSF was created using the FSPECIAL function
using the motionparameter. The image in Figure 2
was then motion blurred using this PSF and the
Step 4
The Noise to Signal Power Ratio was computed
RT
using the following equations:
Step 8
F.Lucy-Richardson filtering of speckle noise performs rather well at removing the degradation
from the PSF (blur in the case) but not the noise.
Therefore, having a good PSF, the Wiener and
Regularized filters will perform better where the
noise information is available whereas, the Lucy-
Richardson filter performs better in blurs
elimination and not particularly the noise.
8. References
1] www.owlnet.rice.edu/elec539/projects99
[2] www.ee.un/v.edu
[3] www.gerltd.com
[4]
www.mathworks.com/help/toolbox/images/bqqhlb
w.html
7. Conclusion
[5] A.S. Awad, A Comparison between previously
In conclusion, often times the colour information if known and two novel Image Restoration
an image is irrelevant to analysis and when such is Algorithms, MS Thesis, Department of Electrical &
RT
the case, a colour image is often converted to
Electronics Engineering, East Mediterranean
grayscale to speed up computation. The point-
spread function (PSF) is unknown in real life and is University. June 2001.
often assumed based on camera parameters or other
IJE
system characteristics. It can be computed by trial [6]R. L. Lagendijk and J. Biemond, Basic Methods
and error. However, the PSF is usually a model as for Image Restoration and
it is very complex to determine an exact
PSF.Although this paper tried exploring the effects Identification, Information and Communication
of other noise models, noise in an image is Theory Group, Faculty of Information Technology
commonly modelled as Gaussian. The noise to and Systems Delft University of Technology, The
image power ratio is good measure of how much
Netherlands (February, 1999).
noise is in an image. This information, along with
the noise power, can be used in the inverse filtering
process to realize a much less degraded image. As [7] R.C. Gonzalez and R.E. Woods, Digital Image
expected the more information you add to the Processing (Third Edition), Publishing House of
inverse filtering process, the better the output. Electronics Industry, Beijing (2010).
Inverse filtering is achieved by the use of
autocorrelation matrices that are obtained from [8] M. Jiang and G. Wang, Development of Blind
noise and blur information about the image. This Image
information expressed as a correlation is
convenient way to implement it into an inverse
[9] M.R. Banham and A.K. Katsaggelos, Digital
filter. It can be observed from the results obtained
that with no noise information, the Wiener and Image Restoration, IEEE Signal Processing
Regularized filters performance in realizing the Magazine 14(2) (March 1997), 24–41.
degraded image was poor. However, the Lucy-
Richardson filter had a good performance, despite [10] M.I. Sezan and A.M. Tekalp, Survey of
having no information about the noise in the image. Recent Developments in Digital Image Restoration,
With noise information, the Wiener and Optical Engineering, vol. 29, No. 5, pp. 393-404,
Regularized filters did a great job at restoring the (1990).
image. However, the Wiener filter is much better at
the blur than the Regularized filter. Despite having
no noise information, the Lucy-Richardson filter [11] Pitas I., Digital Image Processing Algorithms,
Prentice Hall, New York, (1993).
[16]T.Lu,P.Neittaanmaki, andX-
CTai.Aparallelsplittingupmethodforpartial
differentialequations anditsapplication t o navier-
stokes equations. RAIRO Math.
Model.AndNumer. Anal.,26,1992,pp.673-708.
RT
[17]J.Weickert, B.H.Romeny,
andM.A.Viergever.Efficientandreliableschemesfor
non- linear diffusionfiltering.IEEE Trans.
IJE
ImageProcess,7,1998,pp.398-409,1998.