Computer Engineering and Applications ›› 2010, Vol. 46 ›› Issue (23): 175-177.DOI: 10.3778/j.issn.1002-8331.2010.23.049
• 图形、图像、模式识别 • Previous Articles Next Articles
NIU Yu-jing,TANG Di
Received:
Revised:
Online:
Published:
Contact:
牛玉静,唐 棣
通讯作者:
Abstract: The development and present situation of drawing circle algorithm are introduced,and to point out the faults by empirical analysis and summarizing for Bresenham’s algorithm and Kuzmin’s algorithm.Then,a new algorithm chooses the best approximate pixels to the circle with only integer arithmetic,based on the double-step circle drawing algorithm of Wu and Rokne.Finally,the new drawing circle’s algorithm with different grey scales is proposed.It generates 3 intermediate shades of grey scale than the double-step algorithm by Wu and Rokne,and the greatest error of intensity is reduced 1/4.These algorithms are easy to be performed by hardware.
Key words: circle arc, double-step algorithm, integer arithmetic, pixel gray-scale, anti-aliasing
摘要: 首先介绍了圆生成算法的发展及现状,接着对绘制圆的Bresenham算法及Kuzmin单点生成算法进行了实验分析及总结,并指出了其存在的优缺点。基于Wu和Rokne双步圆算法提出了新的双步反走样生成算法,使其成为一种反走样效果更佳的方法。该算法的灰度级数是原来Wu和Rokne算法的3倍,且最大灰度误差也比原来的减少了1/4;另外该算法由于只用整数运算,避免了除法,因此便于硬件实现。
关键词: 圆弧, 双步算法, 整数运算, 像素灰度, 反走样
CLC Number:
TP391
NIU Yu-jing,TANG Di. Double-step anti-aliasing drawing algorithm of circle[J]. Computer Engineering and Applications, 2010, 46(23): 175-177.
牛玉静,唐 棣. 双步圆的反走样生成算法[J]. 计算机工程与应用, 2010, 46(23): 175-177.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/10.3778/j.issn.1002-8331.2010.23.049
http://cea.ceaj.org/EN/Y2010/V46/I23/175