You are on page 1of 3

2010

58

Fig. 2

Examples of chain code

222110776764544.
8

1 .
z Y [41.
l

value

-1

-1

3 .

2.3

Coordinates of offset corresponding to the chain code

Tab.1

1. 2

2.2

. O
(X y) 0

1 (X Ynext)

next =x-1 ,
Ynext=Y+ 1.
X

(2)
(3)

2.1

Fig. 3

Contour tracking flowchart

59

Al

A2

A3

A4

AS

Bl

B2

B3

B4

BS

Fig. 4 Image processing

pixel pixel[OJ

[oJ pixel[OJ[lJ pix

3.2

el[OJ[2J . 2

pixel (X60'

y (X" y ,)

g 2 3

(X/Ji , Y /Ji ) .

d =

.j(X60

- X , )2

+ (Y60

- y , )2

(9)

3.1

pixel

EU.

ala2

(X"y ,):

zc= '

y,

1f
= '

(4)

Matlab

. 4 A1 B1

(5)

. HSV

S=2azdyJazz

4 A2 B2

y
;=y
dl+a
i2
Yo
aEo a
i2

i t k=O
(;l.

k k=2

4 A3 B3 s 4

A4 B4 4
A3 B3 s

Mf Z z

=~aiO [Y~l +an(YH +-}ai2 )J.

4 A5 B5

(7)

Mi y z
90.

.
:

(8)

pixel[J 1 1

2% 1-2 s

a; =ai+2(mod)8 , i= 1 , 2 , , n.

()

60
.

85.

[3J

.
[JJ. 2006(3)

[2J

.
[J J. 2008(1):303-305.

:
[1]

2010

:83-86.

.
J. 2005 (1) 182-

[4J

. J.
1994(10):49-51.

[5J

j . [MJ.
2006:213-214.

An Algorithm ased on the Chain Code for


the Logs Image Foot Diameter Seized
LIN Jing-jing , WEI Yun-long , CHEN Jian-qing , CHEN Wen-xiang*
(Schoo1 of Physics and Mechanica1 &. E1ectrica1 Engineering , Xiamen University , Xiamen 361005 , China)
Abstract: According to the method of getting the 10gs images and their characteristics , the paper improves the eight-direction chain
code contour tracking techno10gy. Present an a1gorithm which beginning from the center point of the image , scan down vertically to
get the start point of the contour tracking , and find the target outline automatically with a constraint condition. The experimenta1 results prove that the algorithm works efficiently. Ba sed on the chain code sequence of the target outline and the coordinate information
of the boundary points , it proposes a method to determine the center point of the target outline , the shortest diameter and other 10g
\

scaling parameters.
Key words: foot diameter 110gs image I chain code I contour trac,king

You might also like