Step01-1
1.到 jsyeh.org/3dcg10 下載 win32、data、source
2. 解壓縮win32跟data資料夾,再將解壓縮後的data放到win裡面,再將win裡面的Texture.exe打開並理解貼圖座標及頂點的函式
Step01-2
1.去moodle OR teams 下載openCV
1-2.選第二個add path
1-3.初始安裝路徑不要改(方便之後步驟設定)
1-4.安裝完成
Step02-1
寫OpenCV 讀圖、秀圖
0.CodeBlocks 要從開(PATH 安裝完之後,便會修改PATH路徑)
1.在File建立一個新EmptyFile,存成 week09_opencv.cpp
```C++
#include <opencv/highgui.h>//使用opencv外掛
int main ()
{
IplImage * img = cvLoadImage("檔名.jpg"); //讀圖
cvShowImage("week09",ing) //秀圖
cvWaitKey(0); //等待任意鍵繼續
}
2.Include 設定: Seetings -> Compiler ->Search directories -> Compiler -> Add目錄: c:\OpenCV2.1\include
3. Lib目錄設定:Seetings -> Compiler ->Search directories -> Linker -> Add目錄: c:\OpenCV2.1\lib
4. Seetings -> Compiler ->Linker Settings -> Linker -> Add cv210、cxcore210、highgui210
5.讀取圖片











沒有留言:
張貼留言