Title: Binary Images
1Binary Images Region Representation
2Binary Images Region Representation -
Boundary Representation - Region Representation
3Boundary Representation Techniques - Chain
Codes - Polygonal Approximations -
Signatures - Boundary Segments Region
Representation Techniques - Skeletons -
Fractal Representation
4Boundary Representation Techniques -
translational invariance - rotational
invariance - scale invariance
Invariance, why is it important?
5Chain Codes
OBJECT
6Chain Codes
OBJECT
BOUNDARY
7Chain Codes
OBJECT
BOUNDARY (4 - CONNECTED)
8Chain Codes
OBJECT
BOUNDARY (8 - CONNECTED)
9Chain Codes
4-CONNECTED
8-CONNECTED
100
Chain Code
0
BOUNDARY
110
0
Chain Code
0, 0
BOUNDARY
120
0
7
Chain Code
0, 0, 7
BOUNDARY
130
0
7
2
7
1
2
Chain Code
5
2
6
0, 0, 7, 7, 5, 6, 5, 5 4, 3, 2, 2, 2, 1, 2
2
5
5
3
4
14First Difference Chain Code
15First Difference Chain Code
Direction codes are given relative to the
direction of the previous movement (rotational
invariance)
16First Difference Chain Code
Direction codes are given relative to the
direction of the previous movement (rotational
invariance) Resulting code may be circularly
shifted to form an integer of minimum magnitude
(implementation invariance)
17First Difference Chain Code
Direction codes are given relative to the
direction of the previous movement (rotational
invariance) Resulting code may be circularly
shifted to form an integer of minimum magnitude
(implementation invariance) Sampling grid may be
adjusted (scale invariance)
18First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0
19First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7
20First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0
21First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0, 6
22First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0, 6, 1
23First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0, 6, 1, 7
24First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0, 6, 1, 7, 0, 7, 7, 7, 0, 0, 7, 1
25First Difference Chain Code
0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2, 2, 1, 2
0, 7, 0, 6, 1, 7, 0, 7, 7, 7, 0, 0, 7, 1, 6
26Chain code 0, 0, 7, 7, 5, 6, 5, 5, 4, 3, 2, 2,
2, 1, 2
First difference Chain Code 0, 7, 0, 6, 1, 7, 0,
7, 7, 7, 0, 0, 7, 1, 6
Minimum magnitude 0, 0, 7, 1, 6, 0, 7, 0, 6, 1,
7, 0, 7, 7, 7,
27Polygonal Approximation a digital boundary can
be approximated with a polygon
28Polygonal Approximation a digital boundary can
be approximated with a polygon approximation is
exact when of points in polygon points
in boundary
29Polygonal Approximation a digital boundary can
be approximated with a polygon approximation is
exact when of points in polygon points
in boundary goal is to capture the essence of
the shape with the fewest possible segments
30Polygonal Approximation Minimal perimeter
polygon
31Polygonal Approximation Minimal perimeter
polygon
Fit a rubberband about the corners of the border
pixels
32Polygonal Approximation Boundary Splitting
Subdivide the boundary about its two farthest
points
33Polygonal Approximation Boundary Splitting
Subdivide each resulting region. Find point with
greatest perpendicular distance.
Continue until perpendicular distance is less
than some threshold.
34Polygonal Approximation Boundary Splitting
35Polygonal Approximation Boundary Splitting
36Signatures 1-D representation of a
boundary plot distance from the centroid to the
boundary as a function of angle
37Signatures plot distance from the centroid to
the boundary as a function of angle
38Signatures translation invariant signature may
be started at point which is farthest from
centroid (rotational invariance) amplitude of
function may be scaled to the range 0, 1 (scale
invariance)
39Boundary Segments
40Boundary Segments
41Boundary Segments
Use a smoothed version of the boundary
42Skeletons
Medial Axis Transform
For each point P in the region, we find its
closest neighbor on the border B. If more than
one closest neighbor, then it is part of the
medial axis.
43Skeletons
Thinning 1) does not remove endpoints 2) does not
break connectedness 3) does not cause excessive
erosion of the region