2022年4月19日 星期二

圖學筆記Week09

 本週課程內容:貼圖、結合opencv和opengl

步驟:進入老師的網站https://jsyeh.org/3dcg10-->下載Win32、data
-->解壓縮data到windows-->開啟Texture.exe

貼圖

步驟:進到Moodle下載opencv2.1.0(path:環境目錄的路徑)-->開啟codeblocks新增專案-->輸入程式(如下圖)-->settings-compiler-search directories(compiler:add-C:\OpenCv2.1\include Linker:add-C:\OpenCv2.1\lib )-->Linker settings(add cv210 cxcoore210 highgui210)-->把圖片放在專案資料夾中-->執行程式(如下圖)


結合opencv和opengl

步驟:開啟codeblocks新增專案-->整合程式(期中十行+本週新程式)-->把圖片放到freeglut/bin-->執行程式(如下圖)-->進老師網站(https://gist.github.com/jsyeh/5ed01210559721ec71b659b3ffed2dd7)-->下載程式
-->加上剛剛寫好程式-->執行程式(如下圖)
要改成圖片檔名






沒有留言:

張貼留言

VERY BEAUTIFUL, VERY POWERFUL

一.     一樣先安裝且設定好freeglut,OpecCV, 開啟CodeBlocks建立新專案 week11_gundam,                 把 MyGundam.zip下載解壓縮後的data資料夾放到freeglut/bin裡面 把week09_openc...