Abstract
In this work we introduce an algorithm to approximate the external shape of an irregular polyline containing some cycles and interlacements. The output consists of a counterclockwise closed walk still containing only some cycles that, with the addition of one more step, can be “opened” in a suitable way to produce a Hamiltonian circuit. Moreover, the time cost of the algorithm is explained and the data structures introduced are described. The proposed algorithm applies to the polyline described by all the input data points as well as the polyline returned using a simplification/reduction method. We also describe how the entire algorithm, or some part of it, can be applied to the output of some well-known reduction methods to solve particular problems which may arise. We carried out a first implementation of the algorithm in MATLAB for its capability to provide both numerical and graphical tools within the same programming language as well as specific features offered by its Toolboxes and by the community of its users. We shall refer to it when reporting some of the results.
Similar content being viewed by others
Notes
In applications these points may be the projections of 3D points on a suitable plane.
An example of this case may be a “Z-like” walk with points on two parallel segments.
This number of points was obtained with an input tolerance tol = 2.4638; this value comes, for κ = 2, from the formula \( \texttt{tol}=\kappa\left(\mu(\ell_i)+\sigma(\ell_i)\right) \) where ℓ i , i = 1, ..., N are the side lengths in γ, and μ, σ are respectively their mean and standard deviation. Since the MSC is not deterministic, the returned points, and their number, can change slightly.
References
Amato NM, Goodrich MT, Ramos EA (2000) Linear-time triangulation of a simple polygon made easier via randomization. In SCG 2000: Proceedings of the sixteenth annual symposium on Computational geometry, pp 201–212, New York, NY, USA
Bentley JL, Ottmann T (1979) Algorithms for reporting and counting geometric intersections. IEEE Trans Comput 28:643–647
Chazelle B, Edelsbrunner H (1992) An optimal algorithm for intersecting line segments in the plane. J Assoc Comput Mach 39(1):1–54
Cheng Y (1995) Mean shift, mode seeking, and clustering. IEEE Trans Comput 17(8):790–799
Comaniciu D, Meer P (2002) Mean shift: a robust approach toward feature space analysis. IEEE Trans Pattern Anal Mach Intell 24(5):1–18
Cormen TH, Leiserson CE, Rivest RL, Stein C (2001) Introduction to algorithms (2/e). MIT Press and McGraw-Hill, New York
Dijkstra EW (1959) A note on two problems in connection with graphs. Numer Math 1:269–271
Douglas D, Peucker TK (1973) Algorithms for the reduction of the number of points required to represent a line or its caricature. Can Cartogr 10(2):112–122
Edelsbrunner H, Kirkpatrick DG, Seidel R (1983) On the shape of a set of points in the plane. IEEE Trans Inf Theory 29(4):551–559
ESRI (2009) Arcgis. http://www.esri.com/software/arcgis/index.html
Finkston B (2006) Mean shift clustering. http://www.mathworks.nl/matlabcentral/fileexchange/10161
Heckbert P, Garland M (1997) Survey of polygonal surface simplification algorithms. In: Multiresolution surface modeling course at SIGGRAPH ’97
Hershberger J, Snoeyink J (1992) Speeding up the Douglas-Peucker line-simplification algorithm. In: Proc. 5th int. symp. on spatial data handling, vol 1, pp 134–243
Jarvis RA (1973) On the identification of the convex hull of a finite set of points in the plane. Inf Process Lett 2:18–21
Luebke DP (2001) A developer’s survey of polygonal simplification algorithms. IEEE Comput Graph Appl 21(3):24–35
Melkemi M, Djebali M (2000) Computing the shape of a planar points set. Pattern Recogn 33:1423–1436
Seidel R (1991) A simple and fast incremental randomized algorithm for computing trapezoidal decomposition and for triangulating polygons. Comput Geom Theory Appl 1(1):51–64
Shamos MI, Hoey D (1976) Geometric intersection problems. In: Proc. 17th FOCS, pp 208–215
TheMathWorks (2011) Mapping toolbox: reducem. http://www.mathworks.com/help/toolbox/map/ref/reducem.html
us (2010) ashape: a pedestrian alpha shape extractor. http://www.mathworks.com/matlabcentral/fileexchange/6760-ashape-a-pedestrian-alpha-shape-extractor
Acknowledgement
This work was supported by MIUR—PRIN prot. 200755X7BB_003.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Rizzardi, M., Troisi, S. Approximation of irregular polylines by means of a straight-line graph. Appl Geomat 3, 171–182 (2011). https://doi.org/10.1007/s12518-011-0059-8
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12518-011-0059-8