-
二
二维图像的三维显示 详细信息 < OpenGL > 本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。本代码在Windows2000下编译通过。 -two-dimensional images of three-dimensional display detailed information Image Processing himself to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y co
- 2022-05-22 12:29:02下载
- 积分:1
-
大家可以下载来看看 很是实用的框架 是基于单文档的
大家可以下载来看看 很是实用的框架 是基于单文档的-you can download to look at the very practical framework is based on a single document
- 2022-03-06 11:48:47下载
- 积分:1
-
OpenGL教学,三维图形绘制
OpenGL教学,三维图形绘制-OpenGL teaching, 3D graphics rendering
- 2023-07-09 02:45:03下载
- 积分:1
-
示例了在MFC框架中直接使用OPENGL API的必须的基本代码
示例了在MFC框架中直接使用OPENGL API的必须的基本代码-example of the MFC framework of the direct use of the OpenGL API to the basic code
- 2022-02-02 09:23:17下载
- 积分:1
-
openGLNEKE
openGLNEKE 48个经典实例源码分享 均通过编译 附中文版电子教程
- 2022-05-22 18:07:17下载
- 积分:1
-
从深度图进行三维建模
代码比较好,可直接运行,从kinect获得的深度信息进行三维建模,是在linux下编译并压缩的
- 2022-04-30 13:26:33下载
- 积分:1
-
实现opengl三维坐标的绘制和任意旋转
实现opengl三维坐标的绘制和任意旋转-Opengl realize three-dimensional coordinates of the mapping and arbitrary rotation
- 2022-07-13 19:55:24下载
- 积分:1
-
opengl高级编程与可视化系统开发(系统篇)
opengl高级编程与可视化系统开发(系统篇)-opengl Advanced Programming and Visualization System (the System Part 1)
- 2022-04-10 10:51:51下载
- 积分:1
-
一个很不错的M3D格式导入OPENGL的程序,十分有借鉴意义
一个很不错的M3D格式导入OPENGL的程序,十分有借鉴意义-A very nice M3D format of import OPENGL procedure is very worth learning
- 2023-03-28 18:20:03下载
- 积分:1
-
排序 alogrithhm
排序算法比较冒泡排序、 选择排序、 插入 sortThe 输出是不减的顺序 (每个元素是不小于根据所需的总顺序排列的前一个元素) ;输出是一个置换 (进行重新排序) 的输入。
- 2022-03-07 02:40:45下载
- 积分:1