doi: 10.4304/jsw.7.9.2053-2060
A Hybrid Algorithm of Raster Conversion for Circle Based on Pattern Analysis
- Shenyang University of Technology/School of Software, Shenyang, China
Abstract
A hybrid algorithm which combines multi-pointmovement, pixel movement and run-length technique isproposed in order to improve the speed of raster converionfor circle arc. In the algorithm, the 1/8 circle arc is dividedinto 4 adjacent regions according to different raster circlepattern, and the method of 4-point movement and runlengthI/O, double-point movement and run-length I/O,mixed 2-point and 3-point movement, 2-point movementalong diagonal direction are adopted corresponding todifferent regions respectively. Different strategy is suitablefor the feature of pixel pattern in every region. So thecalculation numbers of each step is greatly reduced, and I/Ooperation numbers is decreased also by the use of runlengthoutput. The experiment result shows that theefficiencies are increased 80% and 62% respectivelycomparing with the classic single-point algorithm andtypical double-point algorithm. Compared with the existingrun-length algorithm, the derivation of our algorithm issimple, and is made up of basic operations, so it is apt to beimplemented by use of hardware.
Keywords
- Circle Drawing
- Pattern Analysis
- Hybrid
How to Cite
Haiwen Feng, Lianqiang Niu, Bowen Fu, and Ling Zhong, "A Hybrid Algorithm of Raster Conversion for Circle Based on Pattern Analysis," Journal of Software, vol. 7, no. 9, pp. 2053-2060, 2012. https://doi.org/ 10.4304/jsw.7.9.2053-2060
Copyright & License
Copyright © 2012 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).
