摘要
在数字图像处理领域,有时需要从三维的角度观察图像。文中提出了一种二维图像的三维显示方法:首先利用Catmull-Rom插值算法对原图像进行缩放处理,再利用OpenGL绘制小三角形面片生成二维图像的三维平滑曲面,然后利用光照技术生成二维图像的三维显示效果。实验表明,在对原图像施行Catmull-Rom插值处理之后,图像的三维显示效果比没有施行插值要平滑得多,并且也没有出现马赛克现象,这说明该算法是有效的。
In the field of digital image processing, sometimes it's necessary to view an image from a three-dimensional(3 -D) angle. A method of 3 - D viewing of 2 - D image was introduced in this article. First the original image was scaled with Catmull- Rom interpolation algorithm, then functions were invoked from OpenGL to draw triangle facets to produce srneoth 3 - D surface of the image, and in the end,OpenGL lighting was used to produce 3 - D effect. It was demonstrated hy experiment that the result image was much more smoth when the original image was processsed with the algorithm than that was not processed with the algorithm,and the mosaic was not appeared. This proved the algorithm was effective.
出处
《计算机技术与发展》
2007年第10期234-236,241,共4页
Computer Technology and Development
基金
安徽省教育厅自然科学基金项目(2005KJ366zc)