Академический Документы
Профессиональный Документы
Культура Документы
1 Introduction
Polygonal approximation of digital curve is a hot topic in pattern recognition
and image processing and has won wide practical applications such as vector-
ization, map service, CAD and GIS applications. The polygonal approximation
problem can be stated as follow: given a digital curve with N points, approxi-
mate it by a polygon with a given total number of segments M so that the total
approximation error is minimized. The polygonal approximation problem is a
NP-hard problem and the size of the search space is C(N, M ) [1].
In the past decades, many approaches have been proposed to solve the polyg-
onal approximation problem. Some of them are based on local search strat-
egy such as sequential tracing[2], split-and-merge method [3] and dominant
points detection [4]. Others are based on global search technique such as ge-
netic algorithm[5,1]and ant colony methods[6]. The local-search-based methods
work very fast. However as the results depend on the selection of starting point
or the given arbitrary initial solution, they usually lack of optimality. The ap-
proaches based on genetic algorithm, tabu search and ant colony methods can
obtain better results, but require more computation time. So they are hardly fit
for real applications.
In this paper, we propose a novel split-and-merge method (RSM). Different
from SM, RSM applies the ranking selection scheme of genetic algorithm to the
split and merge process and effectively solves the problem of final solution’s
Corresponding author.
D.-S. Huang, K. Li, and G.W. Irwin (Eds.): ICIC 2006, LNCIS 345, pp. 651–656, 2006.
c Springer-Verlag Berlin Heidelberg 2006
652 C. Shi and B. Wang
2 Problem Statement
A closed digital curve C can be represented by a clockwise ordered sequence of
points C = {p1 , p2 , . . . , pN }, where N is the number of points of on the curve
and pi+N = pi . We define arc p i pj as the consecutive points pi , pi+1 , . . . , pj , and
chord pi pj as the line segment connecting points pi and pj . The approximation
error between p i pj and pi pj is defined as
e(pi pj , pi pj ) = d2 (pk , pi pj ) (1)
pk ∈pi pj
where d(pk , pi pj ) is the perpendicular distance from point pk to the line segment
pi pj . The polygon V approximating the digital curve C is defined as a set of
ordered line segments V = {pt1 pt2 , pt2 pt3 , . . . , ptM −1 ptM , ptM pt1 }, such that t1 <
t2 < . . . < tM and {pt1 , pt2 , . . . , ptM } ⊆ {p1 , p2 , . . . , pN }, where M is the number
of vertices of the polygon V . The approximation error between the curve C and
its approximating polygon V is defined as follows:
M
E(V, C) = e(pti
pti+1 , pti pti+1 ) (2)
i=1
ptj−1 ptj+1 to the polygon. We consider the process as merging the edges ptj−1 ptj
and ptj ptj+1 at vertex ptj and term the vertex ptj merging point. Fig. 1 give an
example to illustrate the split and merge processes. Repeat the above processes
until the number of iteration is equal to a pre-specified number. The disadvantage
of this method is that, if a bad initial polygon is given, the obtained final solution
may be far away from the optimal one. Therefore, SM is not stable and depends
on the given initial solution.
S(pi ) = d(pi , ptk ptk+1 )/(1 + d(pi , ptk ptk+1 )). (4)
Definition 2. Assume that ptk be a vertex of the polygon V , ptk−1 and ptk+1 be
its two adjacent vertices. The merging strength of the vertex ptk is defined as
⎧
⎨ p(xi ) = p(xi−1 ) · e−t/(i−1) , i = 2, . . . , M
M (6)
⎩ p(xi ) = 1
i=1
The proposed algorithm has two parameters, one is the parameter t for adjusting
the probability distribution, the other is the number G of iterations.
step 4. For each vertex of V , calculate its merging strength value using Eq. 5.
step 5. Sort these vertices by their merging strength in descending order and
select a vertex using the ranking selection strategy. Then, perform merging
process at the selected vertex.
step 6. Compute the approximation error of the polygon V using Eq. 2. If it is
smaller than the approximation error of polygon B, then replace B with V .
step 7. Set k + 1 to k, if k <= G then go to step 2.
step 8. Output B.
6 Conclusions
A split-and-merge method with ranking selection (RSM) has been proposed for
the polygonal approximation of digital curve. With this method, the problem
of dependence on the initial solution of the traditional split-and-merge method
has been successfully solved. The experimental results demonstrate the good
performance of RSM.
Acknowledgement
The research work in this paper is partially sponsored by Shanghai Leading
Academic Discipline Project, T0603.
References
1. Ho, S. Y., Chen, Y. C.: An Efficient Evolutionary Algorithm for Accurate Polygonal
Approximation. Pattern Recognition, 34 (2001) 2305–2317
2. Kurozumi, Y., Davis, W. A.: Polygonal Approximation by The Minimax Method.
Comput. Graphics Image Processing, 19 (1982) 248–264
3. Wu, J.S., Leou, J.J.: New Polygonal Approximation Schemes for Object Shape Rep-
resentation. Pattern Recognition, 26 (1993) 471–484
4. Teh, H.C., Chin, R.T.: On Detection of Dominant Points on Digital Curves. IEEE
Trans Pattern Anal Mach Intelligent, 11(8) (1989) 859–872
5. Yin, P.Y.: Genetic Algorithms for Polygonal Approximation of Digital Curves. Int.
J. Pattern Recognition Artif. Intelligent, 13 (1999) 1–22
6. U. Vallone: Bidimensional Shapes Polygonalization by ACO. Proceedings of The
3rd International Workshop on Ants Algorithms, Brussels, Belgium (2002) 296–297
7. Ray, B. K., Ray, K. S.: Determination of Optimal Polygon from Digital Curve Using
L1 Norm. Pattern Recognition, 26 (1993) 505–509
8. Phillips, T. Y., Rosenfeld, A.: An ISODATA Algorithm for Straight Line Fitting.
Pattern Recognition letters, 7 (1988) 291–297
9. Baker, J. F: Adaptive Selection Methods for Genetic Algorithms. Grefenstette J.
J. (Ed.) Proc. of the 1st Int’1. Conf. on Genetic Algorithms, Lawrence Earlbaum
Associates, Hilladale, NJ(1985) 101–111