Remainder Approach for the Computation of Digital Straight Line Subsegment Characteristics
Résumé
Given a digital straight line D of known characteristics (a, b, c), and given two arbitrary discrete points A(x a , y a ) and B(x b , y b ) 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 − c mod b; x a ≤ x ≤ x b }. 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 by Said and Lachaud in [11] and Sivignon in [16].
Origine : Fichiers produits par l'(les) auteur(s)
Loading...