摘要
该文提出一种基于DirectX的图像旋转并实时绘制方式。首先文章概述一个由传统算法完成旋转变换的算法。指出存在的问题和局限性;然后,引入基于DirectX的图像旋转算法,在VS2008中的VC++环境下实验图像的旋转以及实时显示,最后对两种算法进行比较。该算法充分节约cPu资源,将矩阵运算在GPU中实现,极大限度的使用GPU性能,保证图像旋转的运算速率和旋转中的图像质量。
An algorithm of image rotation and real-time rendering based on Direct)( is presented in this paper. Firstly , a method of rota- tion transformation which is implemented by CPU is summarized;and pointed out the limitations of this method.And then, the algorithm of image rotation based on DirectX is elicited.the process of image rotation and real-time display is implemented on the platform of VS2008. Finally, two algorithms were compared. The algorithm fully save CPU resources to implement the matrix operations in the GPU, which greatly limits the use of GPU performance, to ensure that the computing speed image rotation and rotation of the image quality.
作者
陈希棠
CHEN Xi-tang (School of Computer Science and Engineering, Changshu Institute of Technology, Changshu 215500, China)
出处
《电脑知识与技术》
2011年第7期4625-4627,4630,共4页
Computer Knowledge and Technology