小心1:Add OpenCV to ...PATH
小心2:要安裝在預設的C:\OpenCV2.1目錄裡
安裝完要重開codeblocks
設定settings-Compiler要加入3個設定
search目錄compiler的include目錄加C:\OpenCV2.1\include
search目錄Linker的lib目錄加C:\OpenCV2.1\lib
加入Linker設定的3個檔名cv210 cxcore210 highgui210
jsyeh.org/3dcg10下載 data win3
windows.zip =>
下載\windows\Texture.exe
data.zip =?
下載\windows\data\一堆圖檔
執行Texture.exe
改glTexCoord2f(tx, ty);貼圖座標, glVertex3f(x,y,z);頂點
安裝freeglur在桌面, 並把lib\freeglut.a複製成libglut32.a
貼上11行GLUT程式
加上3行OpenCV的程式
貼到你的專案的main.cpp的前面18行
後面10行,貼你之前的GLUT程式
最後的glutMainLoop()之前, 加入myTexture("c:/image.jpg");
背景圖會上下顛倒過來
google:earth map找圖片,滿版的圖片
把week05_opencv_opengl_mtTexture的程式拿來用
加上指標
沒有留言:
張貼留言