Abstract
Lines displayed on devices such as incremental plotters, raster CRT or plasma panel displays, and matrix printers must be approximated by sequences of discrete axial and diagonal unit steps in which successive incremental movements are constrained to the movement pattern of the king piece in a game of chess. Described is a Freeman/Reggiori-like algorithm for generating directly the run lengths of constant direction movement within the step sequence in contrast to generating the sequence in its basic unit step elements. The repetitive loop for generating lengths of alternating runs of solely axial and solely diagonal steps requires only integer addition/subtraction together with a sign test and will be executed at most only half the number of times as the comparable loop used to generate the single unit move sequence one step at a time. The algorithm also can be used to examine repetitive patterns and cycles which occur in rastered lines.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
C. Arcelli, and A. Massarotti, On the parallel generation of straight digital lines. Computer Graphics and Image Processing 7 (No. 1), 67–83 (February 1978).
K. Belser, Comment on ‘An improved algorithm for the generation of non-parametric curves’. IEEE Transactions Computers C-25 1, 103 (January 1976).
J. Boothroyd and P. A. Hamilton, Exactly reversible plotter paths. Australian Computer Journal 2 (No. 1), 20–21 (1970).
J. E. Bresenham, An incremental algorithm for digital plotting. ACM National Conference (August 1963).
J. E. Bresenham, Algorithm for computer control of a digital plotter. IBM Systems Journal 4 (No. 1), 25–30 (January 1965).
J. E. Bresenham, D. G. Grice and S. C. Pi, Run length slices for incremental lines. IBM Technical Disclosure Bulletin 22–8B, 3744–3747 (January 1980).
J. E. Bresenham, Incremental Line Compaction: The Computer Journal 2 (No. 1) 116–120 (February 1982).
R. Brons, Linguistic methods for the description of a straight line on a grid. Computer Graphics and Image Processing 3 (No. 1), 48–62 (March 1974).
Roger L. T. Cederberg, A new method for vector generation: Computer Graphics and Image Processing 9 (No. 2), 183–195 (February 1979).
Coueignoux and R. Guedj, Computer generation of colored planer patterns on TV-like rasters. Proceedings of the IEEE 68 (No. 7) 909–922 (July 1980).
R. A. Earnshaw, Line tracking for incremental plotters. The Computer Journal 23 (No. 1), 46–52 (February 1980).
R. A. Earnshaw, Line generation for incremental and raster devices. Computer Graphics 11 (No. 2), 199–205 (Summer 1977 — SIGGRAPH ‘77 Proceedings).
H. Freeman, Boundary encoding and processing in Picture Processing and Psychopictorics, ed. by B. S. Lipkin and A. Rosenfeld, pp. 241–266. Academic Press, New York (1970).
H. Freeman, On the encoding of arbitrary geometric configurations. IRE Trans. EC-102, 260–268 (June 1961).
M. D. Gibbs, Angled vector generator program: IBM Technical Disclosure Bulletin 21 (No. 5), 2041–2044 (October 1978).
L. Gilman and A. J. Rose, APL An Interactive Approach. John Wiley and Sons, New York (1974).
S. K. Hoo, Accelerated Bresenham algorithm. IBM Technical Disclosure Bulletin 18 (No. 4), 1075–1077 (September 1975).
K. E. Iverson, A programming language, p. 12. John Wiley & Sons, Inc., New York (1962).
B. W. Jordan, W. J. Lennon and B. C. Holm, An improved algorithm for the generation of non-parametric curves: IEEE Transactions Computers C-22 (No. 12 ), pp. 1052–1060 (December 1973).
M. L. V. Pitteway, Algorithm for drawing elipses or hyperbolae with a digital plotter. The Computer Journal 10 (No. 3), 282–289 (November 1967).
M. L. V. Pitteway, Bresenham’s algorithm with run line coding shortcut. The Computer Journal 25 (No. 1) 1 13–1 15 (February 1982).
J. Ramot, Non-parametric curves. IEEE Transactions Computers C-25 (No. 1), 103–104 (January 1976).
G. B. Reggiori, Digital computer transformations for irregular line drawings, pp. 46–61. Technical Report 403–22, New York University (April 1972). Available from US Department of Commerce as AD-745–015.
A. Rosenfeld, Digital straight line segments. IEEE Transactions Computers C-23 12, 1264–1269 (December 1974).
F. Rubin, Generation of non-parametric curves. IEEE Transactions Computers C-25, 1, 103 (January 1976).
R. F. Sproull, Using program transformations to Derive Line Drawing Algorithms: Transactions on Graphics 1 (No. 4) 259–273 (1982).
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1985 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Bresenham, J.E. (1985). Run Length Slice Algorithm for Incremental Lines. In: Earnshaw, R.A. (eds) Fundamental Algorithms for Computer Graphics. NATO ASI Series, vol 17. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-84574-1_2
Download citation
DOI: https://doi.org/10.1007/978-3-642-84574-1_2
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-54397-8
Online ISBN: 978-3-642-84574-1
eBook Packages: Springer Book Archive