Skip to main content
. 2022 Jun 22;78:103933. doi: 10.1016/j.bspc.2022.103933

Table 1.

Correspondence between the chain code value of eight neighborhood and the boundary coordinates (x, y).

x offset y offset The value of chain code
1 0 0
1 1 1
0 1 2
−1 1 3
−1 0 4
−1 −1 5
0 −1 6
1 −1 7