2021年4月7日 星期三

電腦圖學week07

 先下載OpenCV-2.1.0-win32-vs2008.exe



在打開codeblocks>setting>compiler>add(1)compiler:C:\OpenCV2.1\include

                                                           (2)linker: C:\OpenCV2.1\lib




                                                   link加入三個檔案 👇

                                          

         cv210 cxcore210 highgui210


把圖存到freeglut\bin,試著用三行程式碼秀出圖檔


把圖貼到茶壺上








沒有留言:

張貼留言

距地表面160 Week11

 #include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) {     if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...