Professional Documents
Culture Documents
ARUN.M
(080107127013)
JAGANNATHAN.A.J.S
(080107127040)
KAJAHUSSAIN.A
(080107127043)
AVINASH VIKRAM.M
(090407127001)
BACHELOR OF ENGINEERING
in
BONAFIDE
CERTIFICATE
SIGNATURE
SIGNATURE
Dr.M.KARTHIKEYAN, Ph.D.,
SUPERVISOR
ASSISTANT PROFESSOR
Department of ECE,
Department of ECE,
Coimbatore-641659.
Coimbatore-641659.
INTERNAL EXAMINER
EXTERNAL EXAMINER
ABSTRACT
Digital images are often corrupted by many types of noise
including salt-and-pepper, which are normally affect the acquisition and
transmission. Impulse noise which is a set of isolated pixels can make a great
difference on the configuration of image. It is often caused by malfunctioning
pixels in camera sensors, faulty memory locations in hardware or transmission
of the image in a noisy channel. It is essential to eliminate salt-and-pepper noise
in the image and to preserve the image edge and integrity. The proposed method
consists of a detection stage where the noisy pixels are detected and followed by
filtering which replaces only the noisy pixels. The noisy pixels are detected by
taking the minimum and maximum gray level intensity values in the sliding
window. Then these detected noisy pixels will be restored by the median value
of the noise free pixels in the sliding window, and then the directional
difference median filtering is used to handle the conflict of noise suppression
and edge-preserving. The proposed method is convenient and efficient on
removing salt and pepper noise in the image and at the same time can achieve
good performance of edge preserving, even when the image is corrupted by salt
and pepper noise of higher density. Simulation results shows that it can remove
salt and pepper noise effectively with edge-preserving compared to other
existing nonlinear filters. Thus the proposed method is simple to realize and it is
simulated by using MATLAB.
ii
TABLE OF CONTENTS
CHAPTER NO.
TITLE
PAGE NO.
ABSTRACT
ii
LIST OF FIGURES
vi
LIST OF TABLES
vii
LIST OF ABBREVIATIONS
viii
INTRODUCTION
1.2 Motivation
SYSTEM ANALYSIS
2.1.1. Drawbacks
iii
SYSTEM SPECIFICATION
3.1.Hardware Requirements
3.2.Software Requirements
SOFTWARE DESCRIPTION
10
10
4.2 Features
11
12
12
Tool box
13
13
14
15
PROJECT DESCRIPTION
17
17
17
18
iv
18
19
21
22
24
24
25
25
27
CONCLUSION
31
31
REFERENCES
32
LIST OF FIGURES
FIGURE
TITLE
NO.
PAGE NO.
4.1
15
4.2
16
5.1
21
5.2
22
5.3
23
6.1
26
6.2
28
6.3
6.4
Image
29
30
vi
LIST OF TABLES
TABLE NO.
TITLE
PAGE NO.
25
25
27
vii
27
LIST OF ABBREVIATIONS
ACWM
ATMA
BDND
BLAS
CWM
DBA
DCT
DICOM
DWMF
EDRIN
EEPA
EISPACK
FFT
GUI
ICC
LINPACK
MSE
OCS
PSNR
RDRIN
SAWM
SMF
viii
CHAPTER 1
INTRODUCTION
1.1 NEED FOR THE PROJECT
Image sequences have conquered their place among the most important
information carriers in today's world. Their applications such as broadcasting,
video-phone, traffic observations, surveillance systems, autonomous navigation
and so on. The field of digital image processing refers to processing digital
image by means of a digital computer. It encompasses processes that extract
attributes from images including the recognition of individual objects.
Digital images are often corrupted by many types of noise including
salt-and-pepper noise, which are normally acquired during image acquisition
and transmission. Impulse noise which is a set of isolated pixels can make a
great difference on the configuration of image. It is essential to eliminate saltand-pepper noise in the image and preserve the image edge and integrity.
Normally the pixels which have maximum and minimum gray level intensity
value in the sliding window are the pixels that are corrupted by the salt and
pepper noise.
The proposed method concentrates on image denoising where impulse
noises in images are removed. Impulse noise is found in situations where quick
transients such as faulty switching, during imaging, due to transmission errors,
malfunctioning pixel elements in the camera sensors, faulty memory locations,
and timing errors in analog-to-digital conversion. An important characteristic of
this type of noise is that only part of the pixels is corrupted and the rest are
noise-free.
This paper deals with the image restoration which is a highly
developing and gaining importance, because of the significant increase in the
use of digital images over the internet and in enhancement of the images in
various fields of research like.
1
1.2 MOTIVATION
The acquisition or transmission of digital images through sensors or
communication channels is often interfered by impulse noise. Noise removal
from a corrupted image is finding vital application in image transmission over
the wideband network. It is imperative and even indispensable, to remove these
corrupted pixels to facilitate subsequent image processing operations, such as
edge detection, image segmentation and object recognition.
In digital image processing, noise reduction is one of basic preprocessing steps usually include image enhancement methods. The aim of
impulse noise reduction is to suppress the noise while preserving the important
fine details and edges which are the two different boundary regions. The
performance of some tasks in next levels such as segmentation/classification for
various applications such that biometric recognition depends on the success of
noise reduction in previous level.
The purpose of image restoration is to "compensate for" or "undo"
defects which degrade an image. Degradation comes in many forms such as
motion blur, noise and camera misfocus. In cases like motion blur, it is possible
to come up with a very good estimate of the actual blurring function and "undo"
the blur to restore the original image. In cases where the image is corrupted by
noise, the best we may hope to do is to compensate for the degradation it
caused. In this project, a new algorithm for effective restoration of degraded
images is proposed.
In Chapter 1, the introduction and need for the project are given.
Chapter 2 describes existing systems with its drawbacks and the proposed
software requirements.
image processing and numerical calculations along with the Image Processing
Toolbar and its features.
the project.
is discussed.
CHAPTER 2
SYSTEM ANALYSIS
2.1 EXISTING SYSTEM
The median filter is the basic nonlinear filter for removing impulse
noise. It has good noise suppression ability and high computational efficiency
but it is prone to damage such important details as thin lines and sharp corners
since it replaces every pixel by the median value of its neighbouring pixels.
The recent methods which are effective in the removal of random valued
impulse noise are a new Directional Weighted Median Filter (DWMF) for
removal of random valued impulse noise [2], an Efficient Denoising chip for the
Removal of Impulse Noise (EDRIN) [14] And Robust Detection technique for
removing Random valued Impulse Noise (RDRIN) [10]. The DWMF uses
directional weighted filters which are effective in removing very low noise
densities and is not efficient for higher noise densities.
.2.1.1 Drawbacks
The principle drawback is that they have limited performance in terms
of false alarm and miss detections. Hence, they cannot preserve the image
details and edges, especially when the noise is high.
Median filter and other versions of median filters have a good ability,
in the low noise ratios and on the other hands in case of the high noise ratio,
these methods causes blurring image and actually destroys vital textures. In
these cases, the relationship between noise reduction and preservation of
important details of image is very important and needs proper algorithms for
noise reduction. The major drawback of the conventional vector median
approaches is that they apply median operation to each pixel, irrespective of it
being corrupted or not.
feasibility, cost benefit analysis is done in which expected costs and benefits are
evaluated. Economic analysis is used for evaluating the effectiveness of the
proposed system. In economic feasibility, the most important is cost benefit
analysis. An impulse noise detection algorithm for switching median filters is
computationally expensive, but it is simulated and seems to be an exceedingly
effective and accurate algorithm for impulse noise detection methods and this
proposed scheme provides better image restoration comparison with the other
existing conventional methods.
2.3.2 Operational feasibility
Operational feasibility is a measure of how well a proposed system
solves the problems and takes advantage of the opportunities identified during
scope definition and how it satisfies the requirements identified in the
requirements analysis phase of system development.
The highly effective directional median filter behaviour is simpler and
it is easy to implement and preserve image details by selecting only noise
pixels for processing and will speed up the filtering process. They can achieve
good edge preserving performance employing fuzzy sets. With the directional
difference median filter it is useful and effective to removal salt and pepper
noise in image processing compared to the conventional median based filters.
The proposed method provides amazing accurate results even when noise
density is as high as 60%.
2.3.3 Technical feasibility
This project is developed using MATLAB. It is executed in the
minimum hardware of Intel Pentium III,RAM of 1 GB, hard disk capacity of
80GB,15 inches monitor,104 keys and mouse, the software MATLAB, the
windows XP or Linux operating systems and that has been used in this project
are found to be technically feasible.
8
CHAPTER 3
SYSTEM SPECIFICATION
PROCESSOR
SPEED
RAM
1 GB (or higher)
40 GB (or higher)
MONITOR
KEYBOARD
OPERATING SYSTEM
DEVELOPMENT TOOL
CHAPTER 4
SOFTWARE DESCRIPTION
4.1 MAT LAB DESCRIPTION
MATLAB is a high-level technical computing language and interactive
environment for algorithm development, data visualization, data analysis and
numeric computation. Using the MATLAB product, we can solve technical
computing problems faster than with traditional programming languages, such
as C, C++ and FORTRAN. MATLAB is an integrated technical computing
environment that combines numeric computation, advanced graphics and
visualization and a high-level programming language.
The MATLAB can be used in a wide range of applications, including
signal and image processing, communications, control design, test and
measurement, financial modeling and analysis and computational biology.
Add-on toolboxes (collections of special-purpose MATLAB functions,
available separately) extend the MATLAB environment to solve particular
classes of problems in these application areas.
MATLAB provides a number of features for documenting and sharing
our work. We can integrate our MATLAB code with other languages and
applications and distribute our MATLAB algorithms and applications.
MATLAB is an interactive system whose basic data element is an array
that does not require dimensioning. It allows us to solve many technical
computing problems, especially those with matrix and vector formulations, in a
fraction of the time it would take to write a program in a scalar non-interactive
language such as C or FORTRAN.
The name MATLAB stands for matrix laboratory. MATLAB was
originally written to provide easy access to matrix software developed by the
10
distribution
components
of
standalone
executable
and
software
royalty-free.
and measurement.
12
images.
distance measurements.
image. These algorithms include the Sobel, Prewitt, Roberts, Canny and
13
Laplacian of Gaussian methods. The powerful canny method can detect true
weak edges without being "fooled" by noise.
Image segmentation algorithms determine region boundaries in an
image. We can explore many different approaches to image segmentation,
including automatic thresholding, edge-based methods, and morphology-based
methods such as the watershed transform, often used to segment touching
objects.
Morphological operators enable you to detect edges, enhance contrast,
remove noise, segment an image into regions, thin regions or perform
skeletonization on regions. Morphological functions in Image Processing
Toolbox include:
Watershed segmentation.
Reconstruction.
Distance transform.
14
16
CHAPTER 5
PROJECT DESCRIPTION
5.1 PROBLEM DEFINITION
In the process of image acquisition and transmission, impulse noises
often cause serious degradation of the image quality. Among the various
filtering algorithms that have been proposed, the family of median filters is the
most popular and holds a dominant position in this area for its simplicity. The
most representative paradigm in this family is known as Switching Median
Filtering (SMF), which partitions the whole filtering process into two
sequential steps - noise detection and filtering. By utilizing the priority
knowledge obtained from the noise detection step, the filtering step could be
more targeted and does not need to touch those uncorrupted pixels. Obviously
the accuracy of the noise detection is critical to the final result. In terms of the
conflict of noise suppression and edge-preserving, our proposed method takes
directional difference method to handle it.
5.2 OVERVIEW OF THE PROJECT
As in image enhancement, the future ultimate goal of restoration
techniques is to improve an image in some predefined sense.
Restoration attempts to reconstruct or recover an image that has been
degraded by using a priori knowledge of the degradation phenomenon. Thus
restoration techniques are oriented toward modelling the degradation and
applying the inverse process in order to recover the original image.
In the proposed method corrupted pixels are detected by using the
minimum and maximum gray level intensity values in the sliding window and
the detected noisy pixels replaced by the median values of noise free pixels and
the directional difference filter is used for edge preserving and effective noise
suppression.
17
The intensity of the noisy pixel will be distinct from its nearest
surrounding pixels. Based on this criterion the proposed method focuses on
noisy pixel detection.
In the first stage, select the window size as 3x3, then the maximum and
minimum gray level values in the window are to identify the noisy pixels. In
next stage, these detected noisy pixels will be replaced by the median value of
the noise free pixels.
In last stage the corrupted pixels which are left unchanged in the
previous stage are restored by using directional difference filters, it also
provides better noise suppression and edge preservation. The proposed method
works well for highly corrupted images with noise densities as high as 60 %
with better PSNR value and improved visual quality.
5.3 DESCRIPTION OF THE ALGORITHM
The description of the algorithm has two stages, they are
respectively.
18
Step 3:
If
Step 4:
If
window size is
by
when the
Step 5:
If
, then
by
Step 2:
Where (0, 0) is the central pixel position. Then the sum of the four
directional differences are found as
19
Step 3:
Minimum among the sum are found and the median of the minimum
directional difference is found. Only noise free pixels and pre-processed pixels
in the concerned direction are considered for taking median.
)
k=1, 2, 3, 4
Thus the noisy pixels are replaced by the median value of the minimum
of the sum of four directional differences.
20
21
22
(a)
(b)
(b)
(d)
23
CHAPTER 6
24
DWMF
EDRIN
RDRIN
Proposed
Method
30
18.1087
25.5235
26.5900
30.1799
40
16.1872
22.4067
23.3969
29.5786
50
14.7031
19.8100
20.5384
28.7990
60
13.3538
17.4319
18.0601
27.6059
70
12.3060
15.4260
15.7887
25.9309
in %
DWMF
EDRIN
RDRIN
Density in
Proposed
Method
%
30
1005.1
182.2764
142.5855
62.3867
40
1564.4
373.6041
297.4327
71.6505
50
2201.8
679.3297
574.4358
85.7386
60
3004
1174.6
1016.4
112.8477
70
3823.7
1864.1
1714.8
165.9563
25
26
DWMF
EDRIN
RDRIN
Proposed
Method
30
18.1818
25.5927
27.0006
33.9014
40
15.9346
22.2179
23.1923
33.0055
50
14.1109
19.0566
20.0746
31.6128
60
12.6763
16.5281
17.2199
30.2138
70
11.4586
14.3798
14.7532
27.2174
in %
DWMF
EDRIN
RDRIN
Density in
Proposed
Method
%
30
988.3335
179.3965
129.7239
26.4814
40
1658.2
390.2002
311.7806
32.5482
50
2523.4
808.0132
639.1722
45.8543
60
3511.2
1446.3
1233.4
61.9017
70
4647.5
2371.9
2176.5
123.4067
27
29
28
30
CHAPTER 7
CONCLUSION
From this proposed method we obtain novel edge preserving method
for salt and pepper denoising. The method is actually a combination of
switching median filter and directional median method. The advantages of this
proposed method are the directional initialization of filtering window size and
the precision of median value. Thus, no training or tuning is required. It is
ultimate filter for denoising salt and pepper noise. Simulation results show that
our proposed method performs better than the median filter and other
conventional edge preserving method, even at a high noise level. The PSNR is
high; MAE and Processing time is low. This proposed method is a fast method
in the algorithm of removing salt and pepper noise.
7.1 FUTURE ENHANCEMENTS
In the future, we will consider using wavelet thresholding for
the image denoising and also preserve the edges of the image. This
project can also extend for the removal of random valued impulse
noise.
31
CHAPTER 8
REFERENCES
[1]. W. Luo, Efficient removal of impulse noise from digital images,
IEEETrans. Consumer Electron., vol. 52, no. 2, pp. 523-527, 2006.
[2]. R. H. Chan, C. W. Ho, and M. Nikolova, Salt and pepper noise removal
by median-type noise detectors and detail preserving regularization, IEEE
Trans. Image Processing, vol. 14, no. 10, pp. 1479-1485, 2005.
[3]. A. Bovik, Handbook of Image and Video Processing, New York: Academic,
2000.
[4]. T. S. Huang, G. J. Yang, and G. Y. Tang, Fast two-dimensional median
filtering algorithm, IEEE Trans. Acoustics, Speech, Signal Process, vol. ASSP1, no. 1, pp. 1318, 1979.
[5]. T. Sun and Y. Neuvo, Detail preserving median based filters in image
processing, Pattern Recognition Letters, vol. 15, pp. 341-347, 1994.
[6]. F. Russo and G. Ramponi, A fuzzy filter for images corrupted by impulse
noise, IEEE Signal Process. Lett, vol. 3, no. 6, pp. 168-170, 1996.
[7]. S. Zhang and M. A. Karim, A new impulse detector for switching median
filter, IEEE Signal Process. Lett, vol. 9, no. 11, pp. 360-363,2002.
[8]. H. Ibrahim and N. S. P. Kong, Simple adaptive median filter for the
removal of impulse noise from highly corrupted images, IEEE Trans Consumer
Electronics, vol. 54, no. 4, 2008.
[9]. K. K. V. Toh and H. Ibrahim, Salt and pepper noise detection and
reduction using fuzzy swithcing median filter, IEEE Trans Consumer
Electronics, vol. 54. no. 4, 2008.
[10]. L. Bar and A. Brook, Deblurring of color images corrupted by impulsive
noise, IEEE Trans Image Processing, vol. 16, no. 4, 2007
32