Iterative Polygon Simplification
![]() "Method A" tends to result in more angular shapes than "method B", which tends to produce "curvier" shapes. The algorithms used to determine the relevance of a vertex in a polygon are set forth and illustrated in D. J. Lee, S. Antani, and L. R. Long, "Similarity Measurement Using Polygon Curve Representation and Fourier Descriptors for Shape-Based Vertebral Image Retrieval," in Proceedings of SPIE--Volume 5032, Medical Imaging 2003: Image Processing (M. Sonka & J. M. Fitzpatrick, eds.), 2003 pp. 1283–1291. The implementation of the simplification algorithm used in this Demonstration achieves needed speed by using the Mathematica compiler and by recognizing that most of the computed "relevance" values for each vertex are unaffected when a vertex is removed. Only the relevances of the neighboring vertices are potentially affected. Thus, the data structure used in this implementation stores a cache of computed relevance values and only computes new values when the removal of a vertex so requires. A compressed representation of the iterative simplification of the polygon is achieved by using an analogy to the GraphicsComplex command in Mathematica. The algorithm stores the coordinates of all the original points in the polygon, the currently active points, and the sequence of removed vertices. This data structure permits the Mathematica Fold or FoldList commands to readily reconstruct how a shape was simplified. ![]() "Iterative Polygon Simplification" from The Wolfram Demonstrations Project http://demonstrations.wolfram.com/IterativePolygonSimplification/ Contributed by: Seth J. Chandler | ||||||||||||||














Browse all topics















