登录
首页 » OpenGL图像 » image processing to the needs and would like to achieve th ree

image processing to the needs and would like to achieve th ree

于 2023-02-17 发布 文件大小:104.08 kB
0 106
下载积分: 2 下载次数: 1

代码说明:

本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。 编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。 本代码在Windows2000下编译通过。-image processing 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 coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documen

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • VC++6.0中用OpenGL实现建筑物虚拟漫游资料。
    VC++6.0中用OpenGL实现建筑物虚拟漫游资料。 -VC++6.0 using OpenGL to achieve building a virtual roaming information. VC++6.0 using OpenGL to achieve building a virtual roaming information.
    2022-02-14 08:44:12下载
    积分:1
  • OpenGL MFC 模板
    这是一个基于VC6.0的单文档的OpenGL模板程序。记得刚刚学OpenGL的时候到处找OpenGL的框架程序,找到一些OpenGL的代码片段时也没办法试,现在只需要在COpenglTemplateView::OnDraw()函数中填入OpenGL绘图代码,就可以看到执行效果了。适用于广大OpenGL爱好者。
    2022-11-09 01:00:04下载
    积分:1
  • 教你如何看VC OpenGL。ASE文件的程序
    这是一个教你如何在vc+OpenGL中读取.ASE文件的程序-teach you how to read vc OpenGL. ASE documentation procedures
    2022-05-14 03:09:14下载
    积分:1
  • 机器人的键盘及旋转控制
    机器人的键盘及旋转控制-Keyboard and rotating robot control
    2022-01-24 14:17:36下载
    积分:1
  • Open Gl bike climbing terrain code
    游戏和其他3D程序的一个共同特点是3D地形的存在。在本课中,我们将制作以下地形:
    2022-04-08 11:17:42下载
    积分:1
  • 介绍在VC中运用opengl进行3D编程的方法
    介绍在VC中运用opengl进行3D编程的方法-Introduced in the VC to use opengl for 3D programming method
    2022-01-30 12:38:56下载
    积分:1
  • 给大家上传一个OpenGL的库文件,帮助解决初学者的问题
    给大家上传一个OpenGL的库文件,帮助解决初学者的问题-To the U.S. to upload a OpenGL library files, to help solve the problem of beginners
    2022-04-11 23:34:10下载
    积分:1
  • 几个非常经典的OPENGL的程序
    几个非常经典的OPENGL的程序-several very classic OpenGL procedures
    2023-05-23 06:15:03下载
    积分:1
  • c#使用c++dll
    这是一个使用c#调用c++编写的dll的完整的例子,主要是加载一个3ds文件,通过传入参数三角节点数组与顶点数组来获取已经用c++写好的3ds程序,经过调试可用,是新手使用dll的好例子。                                                                                                                                                       
    2022-05-19 00:13:56下载
    积分:1
  • 交互式计算机形学--自顶向下方法与OpenGL应用(第三版 影印版)源代码...
    交互式计算机图形学--自顶向下方法与OpenGL应用(第三版 影印版)源代码-interactive computer graphics-- from the top-down approach with the OpenGL application (third edition copy version) source code
    2023-07-18 13:25:03下载
    积分:1
  • 696518资源总数
  • 105661会员总数
  • 6今日下载