节点文献

直线生成的像素行算法

Straight line generation algorithm based on pixel line

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 厉玉蓉董付国刘岩牛翠霞

【Author】 Li Yurong,Dong Fuguo,Liu Yan,Niu Cuixia(Shandong Institute of Business and Technology,School of Computer Science and Technology,Yantai 264005 China)

【机构】 山东工商学院计算机科学与技术学院

【摘要】 在Bresenham算法基础上,采用多点画线法的思想,设计并实现了直线快速生成的像素行算法。根据相邻像素之间的增量取决于直线斜率这一特点,该算法一次生成一个像素行中所有像素点坐标。算法分析与大量实验结果均表明,在保证直线精确度与Bresenham算法相同的情况下,像素行算法减少了大量计算,提高了直线生成效率,直线与x或y坐标轴夹角α越小,算法速度就越快,提高倍数接近于1/tanα,具有较大的理论价值和实际意义。

【Abstract】 On the basis of Bresenham algorithm and other fast algorithms based on multi-pixel incremental generation method,we proposes and implements a new algorithm based on pixel line,considering that the increment between adjacent pixels is determined by the line slope.We take full advantage of the relativity between pixels in the same line,generating all pixels in a pixel line once.The new algorithm guarantees the same line precision as the Bresenham algorithm,using only integer operation and shift operations,which can give a higher speed and can easily be implemented in hardware.The smaller the angle between the line and the coordination axis is,the more efficiency this algorithm can obtain.This algorithm based on pixel line is of great significance.

【基金】 国家自然科学基金项目(60803048,60673153,60773053);山东省自然科学基金项目(Y2007A28);山东省高校科研发展计划项目(J10LG21)
  • 【文献出处】 中国图象图形学报 ,Journal of Image and Graphics , 编辑部邮箱 ,2011年10期
  • 【分类号】TP391.41
  • 【被引频次】5
  • 【下载频次】142
节点文献中: