Any dimension polygonal approximation based on equal errors principle

https://doi.org/10.1016/j.patrec.2006.10.005Get rights and content

Abstract

In this paper, we present an algorithm based on equal errors principle, which solves the general version of polygonal approximation problem (GPA). The approximation nodes of GPA can be selected anywhere on the original polygonal curve, while the “classical” (usually used) polygonal approximation problem (PA) demands the vertices to be a subset of the original polygon vertices. Although the proposed algorithm does not guarantee global minimum distortion, in many cases almost optimal solutions are achieved. Moreover, it is very flexible on changes of error criteria and on curve dimension yielding an alternative and in many cases approximations with lower error (by relaxing the simplification constraint) than the optimal PA methods with about the same computation cost.

Introduction

The polygonal approximation is an important topic in the area of pattern recognition, computer graphics and computer vision. A huge number of applications like object recognition, computational cartography, signal summarization and compression are based on polygonal approximation. The polygonal approximation process saves memory space, reduces the rendering time on graphics applications and gives a more compact representation.

Given an N-vertex polygonal curve P in the n-dimensional space Rn, the curve approximation P consists in computation of another M-vertex polygonal curve in the n-dimensional space Rn that approximates the original curve, according to a predefined error criterion. Let P = {p1, p2,  , pN} and P={p1,p2,,pM} be the set of the vertex points of the given polygonal curve and its approximation, respectively. According to the general polygonal approximation problem (GPA), the vertices of P′ are an ordered subsequence of the curve points along P (Fig. 1a), for which it is not required to be a subset of P vertices as the PA demands (Fig. 1b). Therefore, under this constraint relaxation the solutions of GPA problem give approximations of the polygonal curve P with possibly lower error that than the error of the solutions of PA problem. In addition, it holds that p1=p1 and pM=pN.

Different error criteria have been proposed for polygonal approximation problems. One of the most used is the tolerance zone criterion (Imai and Iri, 1988, Chen and Daescu, 1998). Let pkpk+1¯, k  {1, 2,  , M  1} be a segment of P′ and S=[pk,pm,pm+1,,pm+s,pk+1] be the corresponding subcurve of P. Under this criterion, the error between the segment pkpk+1¯ and S is defined as the maximum distance in an Lh (h  {1, 2, ∞}) metric between pkpk+1¯ and each point on the subcurve S. Another frequently used error criterion is the local integral square error (LISE) (Ray and Ray, 1994, Chung et al., 2002). Under this criterion, the error between the segment pkpk+1¯ and S is defined as the sum of squared Euclidean distances from each vertex point of subcurve S. Finally, according to these error criteria the approximation error between P′ and P is defined as the maximum error between the segments of P′ and their corresponding subcurves of P. The polygonal approximation problem can be formulated in two ways:

  • The problem of minimum error (min  ε), where the approximation error is minimized given the number of segments M.

  • The problem of minimum number of segments (min  #), where the approximation error is bounded (ε) and the goal is to find the minimum number of segments (M) that gives error lower than the given error.

The problem of approximating a polygonal curve P (PA) has been studied extensively during the last two decades (Heckbert and Garland, 1997, Kolesnikov, 2003, Weibel, 1997). The methods, that have been developed, solve the problem by approximating the original polygonal curve P by another polygonal curve P′ under the constraint that the P′ vertex sequence is an ordered subsequence of the vertices along P. There are two well-known approaches for solving this problem: graph–theoretical and dynamic programming. Graph–theoretical methods generate directed acyclic graph on the vertices of P, and then compute the shortest path in the graph (Imai and Iri, 1988, Chan and Chin, 1996, Katsaggelos et al., 1998). Dynamic programming generates the solution for the problem using results of the smaller problem instances (Perez and Vidal, 1994, Salotti, 2001). Concerning the 2-D min  # problem and the min  ϵ problem under the tolerance zone criterion, the lowest computation cost method (Chan and Chin, 1996) has cost O(N2) and O(N2 log N), respectively. The memory requirements can be reduced to O(N) (Chen and Daescu, 1998). The 3-D and 4-D polygonal approximation problems require near-quadratic time and sub-cubic time, respectively (Barequet et al., 2002). When the L1 or L metrics are used, the time requirements for min  # problem and the min  ϵ problem are reduced to O(N2) and O(N2 log N) in any dimensional space (Barequet et al., 2002), respectively. Under the LISE criterion, the 3-D min  # problem and the min  ϵ problem can be solved (Chung et al., 2002) in O(N2) and O(N2 log N), respectively. The performance of polygonal approximation algorithms can be measured under variations in scale parameters and data (Rosin, 1997). The equal error principle has been used in PA (Heckbert and Garland, 1997) getting good approximations. In (Sarkar et al., 2003), the proposed Equal Error Tree algorithm, which is a hierarchical polygon approximation method, is generally better than the Arc Tree and compares well with the Strip Tree. The polygonal approximation of curves by a polygon is a similar problem with GPA.

The rest of the paper is organized as follows: Section 2 presents the proposed GPA algorithm. The experimental results and comparisons with the existing PA methods are given in Section 3. Finally, conclusions and discussion are provided in Section 4.

Section snippets

Problem definition

The goal is to solve the min  ϵ problem and the min  # problem under any predefined error criterion. Some useful symbols are defined in Table 1. Let u, v be points of polygonal curve P. Let dist(p,uv¯) be the distance between point p and line uv¯. Let D(u, v) be the approximation error between the segment uv¯ and the corresponding subcurve of P under a predefined criterion. We consider that the approximation error (Error(P, P′)) between P′ and P is defined as the maximum error between the segments

Experimental results

In this section, the experimental results of the proposed algorithm are presented. The method has been implemented using C and Matlab. For our experiments, we have been using a Pentium 4 CPU at 2.8 GHz. A typical processing time, when the given curve has 100 points and the output curve has 10 points, is about 4 s. We normalize the approximation error ϵ by the curve length. As we have discussed in Section 2.2, the error between the proposed method and the solutions of the EE criterion decreases

Conclusions

In this paper, we have discussed the general polygonal approximation problem (GPA) in any dimensional space under LISE and tolerance zone criterion. We have proposed an algorithm based on the equipartition method. The search space of PA problem (the vertices of P) is a subset of GPA problem search space (the total points of polygonal curve P). Therefore, under this constraint relaxation, the GPA problem solutions approximates better the given curve than the PA problem solutions.

In a lot of

References (18)

There are more references available in the full text version of this article.

Cited by (0)

View full text