{"title":"On Approximating Polygonal Curves in Two and Three Dimensions","authors":"Eu D., Toussaint G.T.","doi":"10.1006/cgip.1994.1021","DOIUrl":null,"url":null,"abstract":"<div><p>Given a polygonal curve <em>P</em> =[<em>p</em><sub>1</sub>, <em>p</em><sub>2</sub>, . . . , <em>p</em><sub><em>n</em></sub>], the polygonal approximation problem considered calls for determining a new curve <em>P</em>′ = [<em>p</em>′<sub>1</sub>, <em>p</em>′<sub>2</sub>, . . . , <em>p</em>′<sub><em>m</em></sub>] such that (i) <em>m</em> is significantly smaller than <em>n</em>, (ii) the vertices of <em>P</em>′ are an ordered subset of the vertices of <em>P</em>, and (iii) any line segment [<em>p</em>′<sub><em>A</em></sub>, <em>p</em>′<sub><em>A</em> + 1</sub> of <em>P</em>′ that substitutes a chain [<em>p</em><sub><em>B</em></sub>, . . . , <em>p</em><sub><em>C</em></sub>] in <em>P</em> is such that for all <em>i</em> where <em>B</em> ≤ <em>i</em> ≤ <em>C</em>, the approximation error of <em>p</em><sub><em>i</em></sub> with respect to [<em>p</em>′<sub><em>A</em></sub>, <em>p</em>′<sub><em>A</em> + 1</sub>], according to some specified criterion and metric, is less than a predetermined error tolerance. Using the <em>parallel-strip</em> error criterion, we study the following problems for a curve <em>P</em> in <em>R</em><sup><em>d</em></sup>, where <em>d</em> = 2, 3: (i) minimize <em>m</em> for a given error tolerance and (ii) given <em>m</em>, find the curve <em>P</em>′ that has the minimum approximation error over all curves that have at most <em>m</em> vertices. These problems are called the min-# and min-ϵ problems, respectively. For <em>R</em><sup>2</sup> and with any one of the <em>L</em><sub>1</sub>, <em>L</em><sub>2</sub>, or <em>L</em><sub>∞</sub> distance metrics, we give algorithms to solve the min-# problem in <em>O</em>(<em>n</em><sup>2</sup>) time and the min-ϵ problem in <em>O</em>(<em>n</em><sup>2</sup> log <em>n</em>) time, improving the best known algorithms to date by a factor of log <em>n</em>. When <em>P</em> is a polygonal curve in <em>R</em><sup>3</sup> that is strictly monotone with respect to one of the three axes, we show that if the <em>L</em><sub>1</sub> and <em>L</em><sub>∞</sub> metrics are used then the min-# problem can be solved in <em>O</em>(<em>n</em><sup>2</sup>) time and the min-ϵ problem can be solved in <em>O</em>(<em>n</em><sup>3</sup>) time. If distances are computed using the <em>L</em><sub>2</sub> metric then the min-# and min-ϵ problems can be solved in <em>O</em>(<em>n</em><sup>3</sup>) and <em>O</em>(<em>n</em><sup>3</sup> log <em>n</em>) time, respectively. All of our algorithms exhibit <em>O</em>(<em>n</em><sup>2</sup>) space complexity. Finally, we show that if it is not essential to minimize <em>m</em>, simple modifications of our algorithms afford a reduction by a factor of <em>n</em> for both time and space.</p></div>","PeriodicalId":100349,"journal":{"name":"CVGIP: Graphical Models and Image Processing","volume":"56 3","pages":"Pages 231-246"},"PeriodicalIF":0.0000,"publicationDate":"1994-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1006/cgip.1994.1021","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"CVGIP: Graphical Models and Image Processing","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1049965284710212","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Given a polygonal curve P =[p1, p2, . . . , pn], the polygonal approximation problem considered calls for determining a new curve P′ = [p′1, p′2, . . . , p′m] such that (i) m is significantly smaller than n, (ii) the vertices of P′ are an ordered subset of the vertices of P, and (iii) any line segment [p′A, p′A + 1 of P′ that substitutes a chain [pB, . . . , pC] in P is such that for all i where B ≤ i ≤ C, the approximation error of pi with respect to [p′A, p′A + 1], according to some specified criterion and metric, is less than a predetermined error tolerance. Using the parallel-strip error criterion, we study the following problems for a curve P in Rd, where d = 2, 3: (i) minimize m for a given error tolerance and (ii) given m, find the curve P′ that has the minimum approximation error over all curves that have at most m vertices. These problems are called the min-# and min-ϵ problems, respectively. For R2 and with any one of the L1, L2, or L∞ distance metrics, we give algorithms to solve the min-# problem in O(n2) time and the min-ϵ problem in O(n2 log n) time, improving the best known algorithms to date by a factor of log n. When P is a polygonal curve in R3 that is strictly monotone with respect to one of the three axes, we show that if the L1 and L∞ metrics are used then the min-# problem can be solved in O(n2) time and the min-ϵ problem can be solved in O(n3) time. If distances are computed using the L2 metric then the min-# and min-ϵ problems can be solved in O(n3) and O(n3 log n) time, respectively. All of our algorithms exhibit O(n2) space complexity. Finally, we show that if it is not essential to minimize m, simple modifications of our algorithms afford a reduction by a factor of n for both time and space.