Lect 35
Lect 35
e
Processing
Lecture 35
01/20/2025 2
01/20/2025 3
Edge-linking Based on the Hough Transform
01/20/2025 4
01/20/2025 5
01/20/2025 6
Thresholding
1 if f ( x, y) T (object point)
g ( x, y )
0 if f ( x, y ) T (background point)
T : global thresholding
Multiple thresholding
a if f ( x, y ) T2
g ( x, y ) b if T1 f ( x, y ) T2
c if f ( x, y ) T1
01/20/2025 7
01/20/2025 8
The Role of Noise in Image Thresholding
01/20/2025 9
The Role of Illumination and Reflectance
01/20/2025 10
Basic Global Thresholding
01/20/2025 11
01/20/2025 12
Optimum Global Thresholding Using Otsu’s
Method
0 Principle: maximizing the between-class variance
Let {0, 1, 2, ..., L -1} denote the L distinct intensity levels
in a digital image of size M N pixels, and let ni denote the
number of pixels with intensity i.
L 1
pi ni / MN and p
i 0
i 1
=
P1 (1 P1 )
mG P1 m
2
=
P1 (1 P1 )
01/20/2025 15
Optimum Global Thresholding Using Otsu’s
Method
The optimum threshold is the value, k*, that maximizes
B2 (k *), B2 ( k *) max B2 ( k )
0 k L 1
1 if f ( x, y) k *
g ( x, y )
0 if f ( x, y) k *
B2
Separability measure 2
G
01/20/2025 16
Otsu’s Algorithm: Summary
01/20/2025 18
01/20/2025 19
Using Image Smoothing to Improve Global Thresholding
01/20/2025 20
Using Edges to Improve Global Thresholding
01/20/2025 21
Using Edges to Improve Global Thresholding
01/20/2025 22
01/20/2025 23
01/20/2025 24