1
边界跟踪算法 1
1 codes for defining directions of a point X under consideration.
example for a binary image
8×8 matrix for this binary image
if pixel (1,2) is set to be the start point,
the next point is (2,2) and its direction code is 6.
1 11
00
11
00 00
11
00 00
11
0
1
00
1
00 00 00 00
00
00
1
0
00
10 32 54 76
0
1
2
3
4
5
6
7
x
y
0 00 00
11
00 00
0
00
00
0 00 00000
0
5
6
7
4
3
2
1
X
- 1
- 2
- 3
前往页