首页 | 官方网站   微博 | 高级检索  
     

直线生成算法的改进
引用本文:贾银亮,张焕春,经亚枝.直线生成算法的改进[J].中国图象图形学报,2008,13(1):158-161.
作者姓名:贾银亮  张焕春  经亚枝
作者单位:南京航空航天大学自动化学院 南京210016
摘    要:直线是图形的基本元素,研究其生成算法具有重要意义。由于经典的Bresenham直线生成算法一次计算只能生成一个像素点,效率较低。为了提高直线生成效率,通过对其进行改进,提出了一种利用直线前两行像素行的像素点数目来计算其余各像素行的像素点数目的算法。该算法在保持Bresenham算法不使用取整和小数运算的优点下,还提高了直线生成效率,一次计算可以生成一个像素行。

关 键 词:计算机图形学  Bresenham算法  判定变量
文章编号:1006-8961(2008)01-0158-04
收稿时间:2006/7/11 0:00:00
修稿时间:2006年7月11日

A Modified Bresenham Algorithm of Line Drawing
JIA Yin-liang,ZHANG Huan-chun,JING Ya-zhi,JIA Yin-liang,ZHANG Huan-chun,JING Ya-zhi and JIA Yin-liang,ZHANG Huan-chun,JING Ya-zhi.A Modified Bresenham Algorithm of Line Drawing[J].Journal of Image and Graphics,2008,13(1):158-161.
Authors:JIA Yin-liang  ZHANG Huan-chun  JING Ya-zhi  JIA Yin-liang  ZHANG Huan-chun  JING Ya-zhi and JIA Yin-liang  ZHANG Huan-chun  JING Ya-zhi
Affiliation:(Nanjing University of Aeronautics & Astronautics, Nanjing 210016)
Abstract:Bresenham algorithm is the most fundamental algorithm for drawing line segments in computer graphics. Canonical Bresenham algorithm can only generate one pixel of a line each time. We proposed a new method by improving it in a novel way, which can generate pixel of a line row by row according to the first and second row of a line and inherit the advantages of Bresenham algorithm without division and decimal fraction. Finally, its efficiency has been proved to be much better than those existing methods.
Keywords:computer graphics  Bresenham algorithm  determinant variable
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《中国图象图形学报》浏览原始摘要信息
点击此处可从《中国图象图形学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号