2022年4月18日 星期一

Angry week09

 <下載範例>範例下載source、wins、data等範例,打開texture範例

                    左下角貼圖頂點為(0,0)右下(0,1)右上(1,1)左上(1,0)

<下載及安裝OpenCV>安裝時要注意路徑設定要更改為add path(不能載在D曹)
<設定步驟>1.新增file/new/EmptyFile
                    2.在codeblocks最上方的settings的compiler
                    3. Search directories 的Compiler ,  add C:\OpenCV2.1\include
                    4. Linker ,  Add C:\OpenCV2.1\lib
                    5. Linker setting新增三個cv210、cxcore210、highgui210


<程式>要注意圖片要存在freeglut/bin底下

<openGL結合openCV>開啟一個OpenGL專案,將之前基礎的10行程式碼打好,

                                        再將 上一個的程式合在一起,這時圖片要存在跟OpenGL同個檔案裡

<結果>開啟兩個視窗,為使用openGL與 openCV開啟的視窗



<程式碼>


<把圖貼在茶壺裡>


<程式碼>

沒有留言:

張貼留言