範例Texture
1.2f:左下(0,0),右下(1,0),右上(1,1),左上(0,1)
2.3f:左下(-1,-1,0),右下(1,-1,0),右上(1,1,0),左上(-1,1,0)
Opencv
1.下載 OpenCV-2.1.0-win32-vs2008.exe
2.安裝時,Add PATH 要選第二個,路徑用預設
3.安裝完,要將CodeBlocks重開
4.CodeBlocks內設定:Setting-Compiler,Search directories
(1) Include:Compiler,Add,C:\opencv2.1\include
(2) Lib:Linker,Add,C:\opencv2.1\lib
(3) Linker settings,Add,cv210、cxcore210、highgui210
程式texture
1.OpenCV讀圖、秀圖
2.結合OpenCV、OpenGL,圖檔要放在 freeglut\bin
3.貼圖
沒有留言:
張貼留言