计算机工程与应用 ›› 2010, Vol. 46 ›› Issue (10): 177-179.DOI: 10.3778/j.issn.1002-8331.2010.10.056

• 图形、图像、模式识别 • 上一篇    下一篇

嵌入半球形滤波快速反走样画线方法

牛玉静,唐 棣   

  1. 辽宁师范大学 计算机应用研究所,辽宁 大连 116081
  • 收稿日期:2008-09-25 修回日期:2008-12-22 出版日期:2010-04-01 发布日期:2010-04-01
  • 通讯作者: 牛玉静

New technique for drawing anti-aliasing straight line based on Hemisphere-filter

NIU Yu-jing,TANG Di   

  1. Institute of Computer Application,Liaoning Normal University,Dalian,Liaoning 116081,China
  • Received:2008-09-25 Revised:2008-12-22 Online:2010-04-01 Published:2010-04-01
  • Contact: NIU Yu-jing

摘要: 直线生成算法的优劣对计算机绘图及应用至关重要。Bresenham算法是最有效的直线生成算法,利用直线的两侧对称性可以进一步加快生成速度。但由于受到光栅扫描显示器的限制,用离散像素绘制的直线存在走样问题,实际应用中经常需要进行反走样处理。基于Bresenham算法,并依据直线的对称生成原理,与Hemisphere-filter反走样技术相结合,提出了一种新的快速反走样直线的生成算法。

关键词: Bresenham算法, 直线, 反走样, Hemisphere-filter器, 像素灰度

Abstract: Algorithms for straight line drawing are important for computer graphics and application,in which Bresenham’s algorithm is most efficient one.Using the bilateral symmetry of the straight line can make it much faster being limited by CRT.The straight line drawed with discrete pixels is often distorted,and needs to be anti-aliased in application.In this paper,a new anti-aliasing technique is given according to the symmetry of the straight line,based on Bresenham’s algorithm and the Hemisphere filter anti-aliasing technique.

Key words: Bresenham’s algorithm, straight line, anti-aliasing, Hemisphere-filter, pixel’s gray scale

中图分类号: