2022年4月18日 星期一

09360503_陳品睿 Week09

 

1. 課本範例glTexCoord2f()

    1-1.如上星期下載win32解壓縮並下載data並解壓縮至剛才的資料夾

    1-2.打開Texture.exe



    1-3.每個函式中x,y的位置(依照顏色標記)

2.安裝openCV

    2-1.在上課用軟體資料夾中下載(2.1.0版本,檔案比較小,兼容性較好)

    2-2.安裝時記得選取加到PATH中
    
    2-3.用預設位置安裝

3.實作openCV

    3-1.開啟CodeBlocks->New->Empty file

    
    3-2.存為week09_opencv.cpp
    
    3-3.上方menu選擇Settings->Compiler
    
3-4.Search directories->Compiler->Add然後選擇c:\OpenCV2.1\include

    3-5.
Search directories->Linker->Add然後選擇c:\OpenCV2.1\lib

    3-6.Linker->settings->Add選擇cv210,cxcore210,highgui210

    3-7.打程式Build&Run

4.結合freeGLUT實作

    4-1.打程式並在freeglut->bin中放入earth.jpg執行

    4-2.貼上老師給的程式並執行













沒有留言:

張貼留言