Title :
A Line Segments Approximation Algorithm of Grating Lines
Author :
Lianqiang, Niu ; Haiwen, Feng
Author_Institution :
Sch. of Software Eng., Shenyang Univ. of Technol., Shenyang, China
Abstract :
A new fast line drawing algorithm that is different from the traditional Bresenham algorithm is presented in this paper. A line is treated as an aggregation of several line segments and the Y coordinate differences of candidate pixel points in every step of traditional algorithm are replaced by the length errors of each segments in this new algorithm. Each operation and judgment can generate a line segment by keeping the advantages of integer arithmetic and then the numbers of operating and output are decreased. Besides these, the skew-symmetric character is considered in the algorithm and the direct draw property without operation of some special lines is also pointed out. All of these characters are helpful to simplified the complexity of algorithm designing and increase line generation speed. Theoretical analysis shows the generation speed of the new algorithm are three times of the Bresenham algorithm with almost same complexity of designing.
Keywords :
approximation theory; computational geometry; computer graphics; Bresenham algorithm; grating lines; line drawing algorithm; line segments approximation; skew-symmetric character; Algorithm design and analysis; Application software; Approximation algorithms; Arithmetic; Computer applications; Graphics; Gratings; Hardware; Software algorithms; Software engineering; graphics algorithm; integer arithmetic; line generation; pixel level drawing; skew symmetry;
Conference_Titel :
Computer Science-Technology and Applications, 2009. IFCSTA '09. International Forum on
Conference_Location :
Chongqing
Print_ISBN :
978-0-7695-3930-0
Electronic_ISBN :
978-1-4244-5423-5
DOI :
10.1109/IFCSTA.2009.130