• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (6): 48-50.

• 论文 • 上一篇    下一篇

基于GPU的图像快速旋转算法的研究及实现

刘耀林 邱飞岳 王丽萍   

  • 出版日期:2008-06-01 发布日期:2010-05-19

  • Online:2008-06-01 Published:2010-05-19

摘要:

本文提出一种基于GPU(图形处理器)的图像旋转并实时绘制方法。首先,文章概述了一种由GPU完成旋转变换的算法,指出其存在的问题与局限性;然后,引出基于GPU的图像旋转算法,并利用DirectX9.0作为软件开发包,在VC++6.0平台实现了图像的旋转以及实时显示;最后,对两种方法的实验结果进行了比较与分析。算法充分吸收GPU在 速度以及节约CPU资源等方面的优势,保证了图像旋转的运算速度与旋转质量。

关键词: 图像旋转 图形处理器 实时绘制 DirectX

Abstract:

An algorithm of image rotation and real-time rendering based on GPU(graphics processing unit) is presented in this paper. Firstly, a method of rotat ion transformation which is implemented by CPU is summarized, and the limitations of this method are pointed out. And then, the algorithm of image rotat ion based on GPU is elicited, the process of image rotation and real-time displaying is implemented on the platform of VC++ 6.0 by using DirectX 9.0.   Finally, the experimental results of the two methods are analysed and compared. The new algorithm absorbs the merits of GPU in the aspects of speed and saving the CPU resources, and ensures the operation speed and quality of image rotation.

Key words: image rotation, graphics processing unit, real-time rendering, DirectX