Fast recognition of a Digital Straight Line subsegment: Two algorithms of logarithmic time complexity - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Discrete Applied Mathematics Année : 2015

Fast recognition of a Digital Straight Line subsegment: Two algorithms of logarithmic time complexity

Résumé

Given a Digital Straight Line (DSL) of known characteristics (a, b, µ), we address the problem of computing the characteristics of any of its subsegments. We propose two new algorithms that use the fact that a digital straight segment (DSS) can be defined by its set of separating lines. The representation of this set in the Z 2 space leads to a first algorithm of logarithmic time complexity. This algorithm precises and extends existing results for DSS recognition algorithms. The other algorithm uses the dual representation of the set of separating lines. It consists of a smart walk in the so called Farey Fan, which can be seen as the representation of all the possible sets of separating lines for DSSs. Indeed, we take profit of the fact that the Farey Fan of order n represents in a certain way all the digital segments of length n. The computation of the characteristics of a DSL subsegment is then equivalent to the localization of a point in the Farey Fan. Using fine arithmetical properties of the fan, we design a fast algorithm of theoretical complexity O(log(n)) where n is the length of the subsegment. Experiments show that our algorithms are also efficient in practice, with a comparison to the ones previously proposed by Lachaud and Said [1]: in particular, the second one is faster in the case of " small " segments.
Fichier principal
Vignette du fichier
article.pdf (526.09 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01120578 , version 1 (26-02-2015)

Identifiants

Citer

Isabelle Sivignon. Fast recognition of a Digital Straight Line subsegment: Two algorithms of logarithmic time complexity. Discrete Applied Mathematics, 2015, pp.130-146. ⟨10.1016/j.dam.2014.04.017⟩. ⟨hal-01120578⟩
219 Consultations
291 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More