Various Filtering Methods
Various Filtering Methods
Image` Restoration
Presented By : M. Jahanzaib
Akhter
Roll
1 No : 242
Outline
1. Introduction .
2. Image .
3. Image noise .
4. Source of image noise .
5. Types of image noise .
6. Filtering
7. Filtering Techniques .
8. Filters types .
9. Conclusion .
2
1. Introduction
It is generally desirable for image brightness to
be
uniform except where it changes to form an
image.
4
1. Introduction (cont.)
Image on the right has more noise
than the image on the left
5
Images
Vector images
Digital images
6
Vector Images
Vector images made up of vectors which lead
through locations called control points.
Each of these control points has define on the
x and y axes of the work plain .
7
Digital Images
A digital image is 2-dim array of real numbers
8
Types of Digital
Images
Color images
9
Binary Images
Each pixel is just black or white
10
Gray Scale Images
Each pixel value of gray scale images normally
from
0 (black) to 255 (white)
11
Color images
In color images each pixel has a particular
color ; that color being described by the
amount of red , blue and green in it .
12
2. Image noise
Noise in image , is any degradation in an image
signal ,
caused by external disturbance while an image is
being sent from one place to another place via
satellite , wireless and network cable .
We can model a noisy image as follows:
13
Source of Image
Noise
Error occurs in image signal while an image is
being sent electronically from one place to
another .
Sensor heat while clicking an image
14
Types of Image Noise
2) Gaussian noise
3) Speckle noise
4) Uniform noise
15
Salt and pepper noise
16
Salt and pepper noise
(cont.)
Reasons for Salt and Pepper Noise:
1) By memory cell failure.
2) By malfunctioning of cameras sensor cells.
3) By synchronization errors in image digitizing or transmission.
18
Image with Salt
and Pepper
Original
Image
19
Salt and pepper noise (cont.)
filtering techniques :
mean filtering .
Median filtering
Gaussian filtering
20
Gaussian Noise
Gaussian noise is caused by random
fluctuations in the
signal , its modeled by random values add to an
image
21
22
Gaussian Noise
(cont.)
23
Image with Gaussian Noise
24
Sources of Gaussian Noise
Transmission
25
Gaussian Noise (cont.)
filtering techniques :
mean (convolution) filtering
Median filtering
Gaussian filtering
26
Speckle Noise
27
Speckle Noise
The distribution noise can be expressed by:
28
Original Image
29
Speckle Noise (cont.)
filtering techniques :
mean (convolution) filtering
Median filtering
30
Uniform Noise
The uniform noise cause by quantizing the
pixels of image to a number of distinct levels is
known as quantization noise.
Uniform noise can be analytically described by :
32
Uniform Noise (cont.)
33
3. Filtering
Filtering image data is a standard process
used in almost all image processing systems.
34
Filtering Techniques
Linear Filtering
Non-Linear
Filtering
35
Linear Filter
Linear filters are used to remove certain type of noise.
The linear filters work best with salt and pepper noise,
and Gaussian noise.
Simple to design .
36
Linear Filters Example
Filtered Gaussian
.noise
37
Non-Linear Filters
Can preserve edges .
Median Filter.
38
Non-linear Filter vs. linear
Filter
39
Filters Types
1) Median filter .
2) Wiener Filter .
3) Mean filter .
4) Gaussian filter
40
Median Filter
Median Filter is a simple and powerful non-linear filter .
Disadvantage:
Median Filter tends to remove image details when
the impulse noise percentage is more than 0.4 %.
42
Example : 3x3
Median
43
Original
Original
De-noising
De-noising by
Median fil
Median filter
44
Wiener Filter
The purpose of the Wiener filter is to filter
out the noise that has corrupted a signal.
46
Wiener filter
Example
47
Mean Filter
Mean Filter (average filter) is a simple linear filter .
Gaussian noise .
Advantage:
Easy to implement
Used to remove the impulse noise.
Disadvantage:
It does not preserve details of image. Some details are
removes of image with using the mean filter.
48
Mean Filtering
Example
Average filtering example using a 3 x 3 sampling
window:
Keeping border values unchanged
49
Mean Filtering -
Boundaries
Average filtering example using a 3 x 3 sampling
window:
Extending border values outside with values at boundary
50
Mean Filter Example
51
Gaussian
Gaussian filter noise
Gaussian is smoothing filter in the 2D
convolution operation that is used to remove
noise and blur from image.
53
Performance Parameters
For comparing original image and filtered image,
we calculate following parameters:
1) Mean Square Error (MSE): The MSE is the
cumulative square error between the encoded and the
original image defined by:
54
Performance Parameters
2) Signal to Noise Ratio is defined by the power ratio
between a signal and the background noise.
55
Performance Parameters
3) Peak signal to Noise ratio (PSNR):
It is defined by:
PSNR = 10 log (255^2/mse)
56
Implementation in
Matlab
57
Conclusion
Enhancement of an noisy image is necessary task
in
.image processing
58
QUESTION
S?
Be nice ...
59
60