Rasterizing curves of constant width
- 1 April 1989
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 36 (2) , 209-229
- https://doi.org/10.1145/62044.62045
Abstract
This paper gives a fast, linear-time algorithm for generating high-quality pixel representations of curved lines. The results are similar to what is achieved by selecting a circle whose diameter is the desired line width, and turning on all pixels covered by the circle as it moves along the desired curve. However, the circle is replaced by a carefully chosen polygon whose deviations from the circle represent subpixel corrections designed to improve the aesthetic qualities of the rasterized curve. For nonsquare pixels, equally good results are obtained when an ellipse is used in place of the circle. The class of polygons involved is introduced, an algorithm for generating them is given, and how to construct the set of pixels covered when such a polygon moves along a curve is shown. The results are analyzed in terms of a mathematical model for the uniformity and accuracy of line width in the rasterized image.Keywords
This publication has 9 references indexed in Scilit:
- Techniques for conic splinesACM SIGGRAPH Computer Graphics, 1985
- Curve-drawing algorithms for Raster displaysACM Transactions on Graphics, 1985
- Anti-aliased line drawing using brush extrusionACM SIGGRAPH Computer Graphics, 1983
- Anti-Aliasing through the Use of Coordinate TransformationsACM Transactions on Graphics, 1982
- LCCD a language for Chinese character designSoftware: Practice and Experience, 1981
- Circle generators for display devicesComputer Graphics and Image Processing, 1976
- Algorithm for drawing ellipses or hyperbolae with a digital plotterThe Computer Journal, 1967
- Algorithm for computer control of a digital plotterIBM Systems Journal, 1965
- On the Encoding of Arbitrary Geometric ConfigurationsIEEE Transactions on Electronic Computers, 1961