Remainder approach for the computation of digital straight line subsegment characteristics

Given a digital straight line D of known characteristics (a,b,c), and given two arbitrary discrete points A(xa,ya) and B(xb,yb) of it, we are interested in computing the characteristics of the digital straight segment (DSS) of D delimited by the endpoints A and B. Our method is based entirely on the...

Full description

Saved in:
Bibliographic Details
Published inDiscrete Applied Mathematics Vol. 183; pp. 90 - 101
Main Authors Ouattara, Jean Serge Dimitri, Andres, Eric, Largeteau-Skapin, Gaëlle, Zrour, Rita, Tapsoba, Théodore Marie-Yves
Format Journal Article
LanguageEnglish
Published Elsevier B.V 11.03.2015
Elsevier
Subjects
Online AccessGet full text
ISSN0166-218X
1872-6771
1872-6771
DOI10.1016/j.dam.2014.06.006

Cover

More Information
Summary:Given a digital straight line D of known characteristics (a,b,c), and given two arbitrary discrete points A(xa,ya) and B(xb,yb) of it, we are interested in computing the characteristics of the digital straight segment (DSS) of D delimited by the endpoints A and B. Our method is based entirely on the remainder subsequence S={ax−cmodb;xa≤x≤xb}. We show that minimum and maximum remainders correspond to the three leaning points of the subsegment needed to determine its characteristics. One of the key aspects of the method is that we show that computing such a minimum and maximum of a remainder sequence can be done in logarithmic time with an algorithm akin to the Euclidean algorithm. Experiments show that our algorithm is faster than the previous ones proposed in Lachaud and Said (2013) and in Sivignon (2013).
ISSN:0166-218X
1872-6771
1872-6771
DOI:10.1016/j.dam.2014.06.006