2017年11月2日 星期四

林韋廷的學習筆記week08
















1. 下載opencv
2. path選2or3
3. 開啟console專案(選C++)
4. 改專案build option
    ->compiler設定路徑為opencv(第一步安裝的)中的include
    ->linker設定路徑為opencv中的lib
5.加入link library(cv210,cxcore210,highgui210)
6.照第一張圖的程式碼(earth.jpg為網路所載的圖,放在專案資料夾中)
7.其執行結果如第二張圖

















建立glut專案
方法跟上面步驟一樣
將圖片放在freeglut/bin中
程式碼加在main中,cvwaitkey()刪掉或註解掉

















以上可讓地球旋轉

沒有留言:

張貼留言