Professional Documents
Culture Documents
This method consists of noise detection followed by the removal of detected noise by Adaptive
median filter using selective pixels that are not noise themselves in gray level images. Noise
detection is based on only the two intensity values i.e. 0 & 255; the pixels are roughly divided
into two classes, which are “noise-free pixel” and “noise pixel”. In impulse noise elimination,
only the “noise pixels” are processed. The “noise-free pixels” are copied directly to the output
image. The method adaptively changes the size of the median filter based on the number of the
“noise- pixels” in the neighborhood. For the filtering, only “noise-free pixels” are considered for
the finding of the median value. Computer simulations were carried out to analyze the
performance of this method.
Contents
Chapter 1: Introduction
1.1 Overview
1.2 Objective
Chapter 7: Conclusion
Introduction
1.1 Overview
Salt and pepper noise is an impulse type of noise, which is also referred to as intensity spikes.
This is caused generally due to dead pixels, analog-to-digital converter errors, errors in data
transmission, malfunctioning of pixel elements in the camera sensors, faulty memory
locations, or timing errors in the digitization process. It has only two possible values, ‘a’ and
‘b’. The probability of each is typically less than 1. The corrupted pixels are set alternatively
to the minimum or to the maximum intensity values, giving the image a “salt and pepper”
like appearance. Unaffected pixels remain unchanged. For an 8-bit image, the typical
intensity value for pepper noise is 0 and for salt noise 255.
1.2 Objectives
The objective of this project is analysis of Adaptive Median filter and
improving its performance by using hybrid median technique on grayscale
images.
CHAPTER 2
Noise gets introduced into the data via any electrical system used for storage,
transmission, and/or processing. In addition, nature will always plays a "noisy" trick
or two with the data under observation.
When encountering an image corrupted with noise you will want to improve
its appearance for a specific application. The techniques applied are application-
oriented. Also, the different procedures are related to the types of noise introduced to
the image. Some examples of noise are: Gaussian or White, Rayleigh, Shot or
Impulse, periodic, sinusoidal or coherent, uncorrelated, and granular.
Noise
Salt and pepper noise is an impulse type of noise, which is also referred to as intensity
spikes. This is caused generally due to dead pixels, analog-to-digital converter errors,
errors in data transmission, malfunctioning of pixel elements in the camera sensors,
faulty memory locations, or timing errors in the digitization process.
It has only two possible values, ‘a’ and ‘b’. The probability of each is typically
less than 1. The corrupted pixels are set alternatively to the minimum or to the
maximum intensity values, giving the image a “salt and pepper” like
appearance. Unaffected pixels remain unchanged.
Usually, for an 8-bit image, a =1(black) and b=0 (white)
The probability density function for this type of noise is shown in figure below:
(a) (b)
Figure 1: a) Salt and pepper noise image b) PDF for salt and pepper noise
Chapter 4
The standard median filter is a simple rank selection filter also called as
median smoother, introduced by tukey in 1971 that attempts to remove impulse noise
by changing the luminance value of the center pixel of the filtering window with the
median of the luminance values of the pixels contained within the window. Although
the median filter is simple and provides a reasonable noise removal performance, it
removes thin lines and blurs image details even at low noise densities. A Median filter
belongs to the class of non-linear filters. The median filter follows the moving
window principle.
e.g.:- A 3x3, 5x5, or 7x7 kernel of pixels is scanned over the pixel matrix of the entire
image. The median of the pixel values in the window is computed, and the centre
pixel of the window is replaced with the computed median.
The median is just the middle value of all the values of the pixels in the
neighborhood. This is not the same as the average (or mean); instead, the median has
half the values in the neighborhood larger and half smaller. The median is a stronger
"central indicator" than the average.
The Standard Median filtering (SMF) is done by first sorting all the pixel
values from the surrounding neighborhood into numerical order and then replacing
the pixel being considered with the middle pixel value.
123 125 126 130 140
✓
Although SMF is a useful non-linear image smoothing and enhancement
technique. It also has some disadvantages.
✓
The SMF removes both the noise and the fine detail since it can't tell the
difference between the two.
✓
Anything relatively small in size compared to the size of the neighborhood will
have minimal affect on the value of the median, and will be filtered out.
✓
In other words, the SMF can't distinguish fine detail from noise.
Chapter 5
The proposed filtering approach is the combination of adaptive median filter and the hybrid
median filter. First of all the adaptive median filter is used to remove salt and pepper noise
from a gray-scale image and then hybrid median filter is used to retain the edges and fine
details of the image.
Chapter 6
Matlab code
>> i=imread(‘Naveed.jpg');
>> imshow(i)
>> i=imread(‘Naveed.jpg');
>> imshow(i)
K= medfilt2(noisy_img);
close all;
subplot(211);imshow(noisy_img); subplot(212); imshow(k);
Chapter 7
Conclusion
In this project, we analyze the images that are corrupted with high density of
impulse noises based on different PSNR and MSE values. Adaptive filtering is an
improved filtering technique as compare to median filter in which the filtering is applied
only to corrupted pixels in the image while the uncorrupted pixels are left unchanged. The
Adaptive filtering approach is used to reduce the number of noisy pixels during filtering.
The advantage of Adaptive filter is that it is retaining the edge information in the case of
high density impulse noises. The Adaptive filter is found to be retaining finer details in the
image and the images restored are with an improved visual quality. The detail preservation
ability of the adaptive filter makes it suitable for medical image denoising, where also
detail preservation is an important issue.
The edges and fine details of the image are preserved by using the hybrid median
filter. The hybrid median filters have some of the advantages in image processing. For
repeated application the hybrid median filter does not excessively smooth image details,
Edge treating is possible, hybrid median filter preserves edges better than a median filter,
preserves brightness difference, simple to understand.
From the simulation result of PSNR and MSE, I have found that after combining the adaptive
median filter and hybrid median filter, image denoising is enhanced. It produces better result.
However for adaptive median filter it is found that for Smax=3 and Salt-pepper noise
density=10%, image denoising is better as compared to standard median filter. The higher the
PSNR value, the higher will be the quality of the image. Also, lower the value of MSE, higher
will be the quality of the image.
Chapter 8