引用本文:苗兰芳,刘新国,彭群生,鲍虎军.自适应多步位移码直线绘制算法.软件学报,2002,13(4):637-642
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 4141次   下载 5643 本文二维码信息
码上扫一扫!
分享到: 微信 更多
自适应多步位移码直线绘制算法
苗兰芳1, 刘新国1, 彭群生1, 鲍虎军1
浙江大学,CAD&CG国家重点实验室,浙江,杭州,310027
摘要:
直线绘制是光栅图形学中一个最为基本的任务,加速传统直线绘制算法有着重要的实际意义.提出了一种新的直线绘制算法.与传统的直线绘制算法不同的是,该算法将直线直接表达成一串由0或1组成的位移码,并给出一个直线位移码的快速计算公式;在此基础上,通过对直线位移码周期性的分析,提出了一种新的自适应多步绘制算法.实验和理论分析表明,该算法能够大大减少生成直线的计算量,提高直线的绘制速度.
关键词:  图形系统  扫描转换  位移码  绘制  自适应算法
DOI:
分类号:
基金项目:国家自然科学基金资助项目(69823003)
An Adaptive Multi-Pixel Line Drawing Algorithm Based on Displacement Code
MIAO Lan-fang,LIU Xin-guo,PENG Qun-sheng,BAO Hu-jun
Abstract:
Line drawing is a fundamental task for raster graphics. Any acceleration of the traditional line drawing process is of great significance. In this paper, a new line drawing algorithm is presented. The algorithm differs from the traditional line drawing algorithm in that a line is directly represented as a series of displacement codes consisting of 0 s and 1 s, which can be easily determined from a formula. Based upon periodic characteristics of the codes, a new adaptive multi-pixel line drawing algorithm is put forward.Both exerimental results and analysis show this algorithm greatly reduces the computation of line drawing and accelrates the line drawing process.
Key words:  graphics system  scan conversion  displacement code  rendering  adaptive algorithm