本文已被:浏览 1883次 下载 3773次
Received:July 29, 2010 Revised:September 05, 2010
Received:July 29, 2010 Revised:September 05, 2010
中文摘要: 直线生成算法是图形的基本元素,也是计算机图形学基础理论的重要内容。Bresenham 算法是直线生成算法中最经典的算法,但是它一次计算只能生成一个像素点,效率低下。为了提高直线生成效率,充分利用待生成线段的起点和终点坐标及线段自身的对称性,对Bresenham 算法进行改进,一次计算生成一个像素行。讨论硬件实现该算法的加速方法。
Abstract:Line drawing algorithm is very important in the computer graphics. It is the most famous algorithm that Bresenham Algorithm uses to draw a straightness line in a smooth fashion. The advantage of classic Bresenham Algorithm is that the operations are all integer numeric without division and decimal fraction. Meanwhile, the disadvantage of the algorithm is that it can just generate one pixel in a computation time and its low in efficiency. In this paper, an accelerated algorithm was proposed, which give full attention to the initiative relation between generation model of line and its linear slope, and it does generate more than one pixel of a line through row of raster display device. The core principle of the improved algorithm is utilizing the coordinate position of both ends of line and the symmetry characteristic for segments. After discussing theory and structure of the improved algorithm, the algorithm implementation and simulation are given at last. And finally, the hardware acceleration in the use of circular subtraction technology based on shift register was briefly described.
keywords: line bresenham computer graphics multi-pixel algorithm
文章编号: 中图分类号: 文献标志码:
基金项目:河南省教育厅教育科学研究“十一五”规划([2009]-JKGHAG-0730);郑州航院教育科学研究课题(2010-58-38)
Author Name | Affiliation |
LI Xiang | Zhengzhou Institute of Aeronautical Industry Management, Zhengzhou 450015, China |
Author Name | Affiliation |
LI Xiang | Zhengzhou Institute of Aeronautical Industry Management, Zhengzhou 450015, China |
引用文本:
李向.基于循环减法加速的多像素Bresenham 直线绘制算法.计算机系统应用,2011,20(4):245-247,230
LI Xiang.Accelerated Multi-Pixel Bresenham Line Drawing Algorithm Based on Circular Subtraction.COMPUTER SYSTEMS APPLICATIONS,2011,20(4):245-247,230
李向.基于循环减法加速的多像素Bresenham 直线绘制算法.计算机系统应用,2011,20(4):245-247,230
LI Xiang.Accelerated Multi-Pixel Bresenham Line Drawing Algorithm Based on Circular Subtraction.COMPUTER SYSTEMS APPLICATIONS,2011,20(4):245-247,230