期刊文献+

基于像素链排序的直线绘制算法 被引量:2

Line drawing algorithm based on sorting piXel chains
在线阅读 下载PDF
导出
摘要 针对直线生成算法在直线斜率大于0.5时的低效率问题,提出一种基于像素链排序的直线绘制算法。将直线看做是由许多条平行像素链或对角像素链拼接而成,利用逆向生成直线的类Bresenham算法求得各像素链的长度,通过Bresenham算法生成相应直线的位移码对各像素链进行排序,一次判断生成一条像素链。仿真实验表明,基于像素链排序的直线绘制算法生成的直线与Bresenham算法生成的直线精度一致,且计算量显著减少。该算法只有加法和乘法两种整数运算,适合硬件实现,其绘制速度是Bresenham算法的4倍。 In order to increase the low efficiency of the line drawing algorithm when the slope of the line is at 0.5 - 1, this paper proposed a line drawing algorithm based on sorting pixel chains. It treated a straight line as an aggregation of several horizontal pixel chains or diagonal ones. The attribute of a line and an algorithm of line drawing in a reverse direction ,which was similar to the Bresenham algorithm, were used to calculate the length of all the pixel chains. The algorithm sorted the pixel chains by the codes generated by Bresenham algorithm. It generated one pixel chains by one judgment. Simulation results show that the accuracy of straight line generated by new algorithm is as same as that generated by the Bresenham algorithm, and the computation is greatly reduced. The new algorithm only has two integer arithmetic, addition and multiplication, so it is suitable for hardware implementation.
出处 《计算机应用研究》 CSCD 北大核心 2012年第3期1175-1177,共3页 Application Research of Computers
基金 国家自然科学基金资助项目(10576027)
关键词 计算机图形学 直线绘制算法 BRESENHAM算法 逆向生成直线 像素链 排序 整数运算 computer graphics line drawing algorithm Bresenham algorithm line generation in reverse direction pixel chains sorting integer arithmetic
  • 相关文献

参考文献5

二级参考文献24

  • 1贾银亮,张焕春,经亚枝.Bresenham直线生成算法的改进[J].中国图象图形学报,2008,13(1):158-161. 被引量:26
  • 2蔺想红,张田文.自适应多基元直线绘制算法[J].计算机辅助设计与图形学学报,2006,18(8):1136-1141. 被引量:5
  • 3黄斌茂,张利.基于自适应步长的直线生成算法[J].清华大学学报(自然科学版),2006,46(10):1719-1722. 被引量:4
  • 4BOYER V, BOURDIN J J. Auto-adaptive step straight-line algorithm[ J ]. IEEE Computer Graphics and Applications, 2000, 20 (5) :67-69.
  • 5BRESENHAM J E. Algorithm for computer control of a digital plotter[ J ]. IBM Systems Journal, 1965,4(1) : 25 - 30.
  • 6GARDNER P L. Modifications of Bresenham's algorithm for display [J]. IBM Technical Disclosure Bulletin, 1975, 18 (5) : 1595 - 1596.
  • 7WU X, ROKNE J G. Double-step incremental generation of lines and circles[ J ]. Computer Vision, Graphics, and Image Processing, 1987, 37(3) : 331 - 344.
  • 8GRAHAM P, IYENGAR S S. Double and triple-step incremental linear interpolation[ J ]. IEEE Computer Graphics and Applieations, 1994, 14(3) : 49 - 53.
  • 9BAO P G, ROKNE J G. Quadruple-step line generation[ J ]. Computers & Graphics, 1989, 13 (4) : 461 - 469.
  • 10GILL G W. N-step incremental straight-line algorithms[ J ]. IEEE Computer Graphics and Applications, 1994, 14(3) : 66-72.

共引文献26

同被引文献15

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部