You are on page 1of 26

1

Computer
Vision
Lecture 4
Noise Reduction & Noise Removal
Hendrawan A.
Sekolah Tinggi Teknik Surabaya
What Is Noise
Cleaning?
Detect lack of coherence and
either replace the incoherent
pixel value by something more
spatially coherent by using
some or all of the pixels in a
neighborhood.

Sekolah Tinggi Teknik Surabaya


Noise Reduction
One of noise cleaning technique
that use before threshold
feature
Use at grey level image
Example:
Median Filtering

Sekolah Tinggi Teknik Surabaya


Noise Removal
One of noise cleaning technique
that use after threshold feature
Use at bi level image
Example:
Morphology

Sekolah Tinggi Teknik Surabaya


Median Filtering
Init Matrix NxN
Expand Image (depend on size
N)
For Top Left to Bottom Right
Move Matrix
Calculate Median Value

Sekolah Tinggi Teknik Surabaya


Median Filtering
10 25 10 40 41 200 40
10 25 10
1 25
25 70 70
15 10

120 120
100 100 100
120 120 100 120 120 20
12 120
0 100 100 50

Sekolah Tinggi Teknik Surabaya


Median Filtering
10 10 25 10 40 41 200 40
10 10 25 10 40 41 200 40
10 25 10
1 25
25 70 70
15 10

120 120
100 100 100
120 120 100 120 120 20
12 120
0 100 100 50

7

Sekolah Tinggi Teknik Surabaya


Median Filtering
10 10 25 10 40 41 200 40
10 10 25 10 40 41 200 40
10 25 10
1 25
25 70 70
15 10

120 120
100 100 100
120 120 100 120 120 20
12 120
0 100 100 50

8

Sekolah Tinggi Teknik Surabaya


Median Filtering
10








Sekolah Tinggi Teknik Surabaya


Median Filtering
10 10 25 10 40 41 200 40
10 10 25 10 40 41 200 40
10 25 10
1 25
25 70 70
15 10

120 120
100 100 100
120 120 100 120 120 20
12 120
0 100 100 50

1
0
Sekolah Tinggi Teknik Surabaya
Median Filtering
10 10








1
1
Sekolah Tinggi Teknik Surabaya
Median Filtering
10 10 10 10 10 40 40
1 10 10 10
1 10



100
100 120 100 100 100 20
100 100 20

1
2
Sekolah Tinggi Teknik Surabaya
Morphology
Dilation
Erosion
Opening
Closing

1
3
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
Using the same method with
median filtering but it isnt use
median to determine his value
but maximum
Pixel which located outside
image is determine as pixel 0 or
white

1
4
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1 1 1 1 1 1 1
1 1 1
1 1
1 1 1
1 1

1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1

1
5
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1 1 1 1 1 1 1
1 1 1
1 1
1 1 1
1 1

1 1 1 1 1
1 1 1 1 1 1

1 1 1 1 1

1
6
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1








1
7
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1 1 1 1 1 1 1
1 1 1
1 1
1 1 1
1 1

1 1 1 1 1
1 1 1 1 1 1

1 1 1 1 1

1
8
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1 1








1
9
Sekolah Tinggi Teknik Surabaya
Morphology -
Dilation
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1

2
0
Sekolah Tinggi Teknik Surabaya
Morphology -
Erosion
Using the same method with
median filtering but it isnt use
median to determine his value
but minimum
Pixel which located outside
image is determine as pixel 1 or
black

2
1
Sekolah Tinggi Teknik Surabaya
Morphology -
Erosion
1 1 1 1 1 1 1
1 1 1
1 1
1 1 1
1 1

1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1

2
2
Sekolah Tinggi Teknik Surabaya
Morphology -
Erosion
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 1 1
1 1 1 1
1 1 1 1 1
1 1 1 1
1 1

1 1 1 1 1 1 1
1 1 1 1 1 1 1 1

1 1 1 1 1 1 1
1 1
1 1 1 1 1 1 1 1 1 1 1 1 2
3
Sekolah Tinggi Teknik Surabaya
Morphology -
Erosion









2
4
Sekolah Tinggi Teknik Surabaya
Morphology -
Opening
Use for delete object with small
area
Erosion -> Dilation

2
5
Sekolah Tinggi Teknik Surabaya
Morphology -
Closing
Use for delete hole with small
area
Dilation -> Erosion

2
6
Sekolah Tinggi Teknik Surabaya

You might also like