Computer Vision: Thresholding (Image Processing)
Computer Vision: Thresholding (Image Processing)
Computer
Vision
Lecture 2
Thresholding (Image Processing)
Hendrawan A.
Sekolah Tinggi Teknik Surabaya
What Is
Thresholding?
A labeling operation on a gray
scale image.
Thresholding distinguishes
pixels that have higher gray
values from pixels that have
lower gray value.
Pixels whose gray values are
high enough are given the
binary value 1.
2
Pixels whose gray values are
not high enough are given the
Sekolah Tinggi Teknik Surabaya
What Is
Thresholding?
100 100 100 100
100
100 100
100 50 50
50 50
30 30
40 40 20 20 20 20
20 20
1
1
Sekolah Tinggi Teknik Surabaya
Riddler
Calculate the amount of each
pixel in the image
100 100 100 100
100
100 100
100 50 50
50 50
30 30
40 40 20 20 20 20
20 20
1
2
Sekolah Tinggi Teknik Surabaya
Riddler
Pick 1 pixel as Estimated
Threshold
For example: 70
Calculate the average of pixel
higher than estimated threshold
and pixel lower than estimated
threshold
1
i : Pixel in Image 3
1
6
Sekolah Tinggi Teknik Surabaya
Otsu
Calculate for each pixel-t
m : Mean
s : Standard Deviation 1
8
Sekolah Tinggi Teknik Surabaya
Sauvolla-
Pietikainen
The example region for
calculate threshold
100 100 100 100
100
100 100
100 50 50
50 50
30 30
40 40 20 20 20 20
20 20
1
9
Sekolah Tinggi Teknik Surabaya