Continued Fractions and Digital Lines with Irrational Slopes

  • Hanna Uscka-Wehlou
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4992)


This paper expands on previous work on relationships between digital lines and continued fractions (CF). The main result is a parsimonious description of the construction of the digital line based only on the elements of the CF representing its slope and containing only simple integer computations. The description reflects the hierarchy of digitization runs, which raises the possibility of dividing digital lines into equivalence classes depending on the CF expansions of their slopes. Our work is confined to irrational slopes since, to our knowledge, there exists no such description for these, in contrast to rational slopes which have been extensively examined. The description is exact and does not use approximations by rationals. Examples of lines with irrational slopes and with very simple digitization patterns are presented. These include both slopes with periodic and non-periodic CF expansions, i.e. both quadratic surds and other irrationals.


digital geometry theory of digital lines irrational slope continued fraction quadratic surd 


  1. 1.
    Beskin, N.M.: Fascinating Fractions. Mir Publishers, Moscow (1986) (Revised from the 1980 Russian edition)Google Scholar
  2. 2.
    Brezinski, C.: History of Continued Fractions and Padé Approximants. Springer, Heidelberg (1991) (Printed in USA)Google Scholar
  3. 3.
    Brons, R.: Linguistic Methods for the Description of a Straight Line on a Grid. Comput. Graphics Image Processing 3, 48–62 (1974)CrossRefMathSciNetGoogle Scholar
  4. 4.
    Bruckstein, A.M.: Self-Similarity Properties of Digitized Straight Lines. Contemp. Math. 119, 1–20 (1991)MathSciNetGoogle Scholar
  5. 5.
    Debled, I.: Étude et reconnaissance des droites et plans discrets. Ph.D. Thesis, Strasbourg: Université Louis Pasteur, pp. 209 (1995)Google Scholar
  6. 6.
    Dorst, L., Duin, R.P.W.: Spirograph Theory: A Framework for Calculations on Digitized Straight Lines. IEEE Transactions on Pattern Analysis and Machine Intelligence PAMI 6(5), 632–639 (1984)zbMATHCrossRefGoogle Scholar
  7. 7.
    Khinchin, A.Ya.: Continued Fractions, 3rd edn. Dover Publications (1997)Google Scholar
  8. 8.
    Klette, R., Rosenfeld, A.: Digital straightness – a review. Discrete Appl. Math. 139(1–3), 197–230 (2004)CrossRefMathSciNetzbMATHGoogle Scholar
  9. 9.
    Lothaire, M.: Algebraic Combinatorics on Words. Cambridge Univ. Press, Cambridge (2002)zbMATHGoogle Scholar
  10. 10.
    Perron, O.: Die Lehre von den Kettenbrüchen. Band I: Elementare Kettenbrüche, 3rd edn (1954)Google Scholar
  11. 11.
    Réveillès, J.-P.: Géométrie discrète, calculus en nombres entiers et algorithmique, 251 pages, Strasbourg: Université Louis Pasteur, Thèse d’État (1991)Google Scholar
  12. 12.
    Sloane, N.J.A.: The On-Line Encyclopedia of Integer Sequences,
  13. 13.
    Stephenson, P.D.: The Structure of the Digitised Line: With Applications to Line Drawing and Ray Tracing in Computer Graphics. North Queensland, Australia, James Cook University. Ph.D. Thesis (1998)Google Scholar
  14. 14.
    Stolarsky, K.B.: Beatty sequences, continued fractions, and certain shift operators. Canad. Math. Bull. 19, 473–482 (1976)MathSciNetzbMATHGoogle Scholar
  15. 15.
    Uscka-Wehlou, H.: Digital lines with irrational slopes. Theoret. Comput. Sci. 377, 157–169 (2007)CrossRefMathSciNetzbMATHGoogle Scholar
  16. 16.
    Venkov, B.A.: Elementary Number Theory. Translated and edited by Helen Alderson. Wolters-Noordhoff, Groningen (1970)zbMATHGoogle Scholar
  17. 17.
    de Vieilleville, F., Lachaud, J.-O.: Revisiting Digital Straight Segment Recognition. In: Kuba, A., Nyúl, L.G., Palágyi, K. (eds.) DGCI 2006. LNCS, vol. 4245, pp. 355–366. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  18. 18.
    Voss, K.: Discrete Images, Objects, and Functions in ZZn. Springer-Verlag (1993)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Hanna Uscka-Wehlou
    • 1
  1. 1.Department of MathematicsUppsala UniversityUppsalaSweden

Personalised recommendations