首页 | 本学科首页   官方微博 | 高级检索  
     

圆的像素级生成及反走样算法
引用本文:刘勇奎,石教英.圆的像素级生成及反走样算法[J].计算机辅助设计与图形学学报,2005,17(1):34-41.
作者姓名:刘勇奎  石教英
作者单位:大连民族学院计算机科学与工程系,大连,116600;浙江大学CAD&CG国家重点实验室,杭州,310027
基金项目:国家自然科学基金 (60 473 10 8)
摘    要:介绍了圆的逐点生成算法的研究现状,指出被忽视了的Kuzmin逐点生成圆弧算法具有最小计算量,指出并纠正其存在的严重错误;然后,提出了一种双点生成圆弧算法.该算法只用整数运算来选择距离圆弧最近的像素点,比较结果表明,该算法比现有其他算法具有更快的执行速度;最后,在文中算法的基础上提出了一个生成反走样圆弧的算法且没有增加算法的计算量.该算法与惟一可比的双点生成反走样圆弧的Wu—Rokne算法进行比较的结果表明,该算法比后者多产生了4个中间灰度级,并且所生成的反走样圆弧的最大光强误差比后者减少了40%.文中算法便于硬件实现.

关 键 词:圆弧  逐点绘制  整数运算  双步算法  反走样

Double-Step Circle Drawing Algorithm with and without Grey Scale
Liu Yongkui,Shi Jiaoying.Double-Step Circle Drawing Algorithm with and without Grey Scale[J].Journal of Computer-Aided Design & Computer Graphics,2005,17(1):34-41.
Authors:Liu Yongkui  Shi Jiaoying
Affiliation:Liu Yongkui 1) Shi Jiaoying 2) 1)
Abstract:Some existing pixel-level algorithms for drawing circles are introduced first in this paper. We further pointed out that the Kuzmin's circle drawing algorithm, a neglected algorithm in fact has least calculations, but on the other hand the algorithm carries serious mistakes. This paper corrects the mistakes in the algorithm, and then presented a double-step circle drawing algorithm. The new algorithm chooses the best approximate pixels to the circle with only integer arithmetic. The comparison results show that its speed is higher than the existing circle drawing algorithms. Finally, based on this algorithm, an algorithm for drawing anti-aliased circles is proposed without increasing the calculations. It generates four more intermediate shades of grey scale than the double-step algorithm by Wu and Rokne and the greatest error of intensity is reduced by 40%. These algorithms are easy to be realized by hardware.
Keywords:circle  pixel level drawing  integer arithmetic  double-step algorithm  anti-alias
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号