HW1_練習小考1_TRT旋轉
glPushMatrix();//備份
glTranslatef();//手肘中心_(4)
glRotatef();//旋轉手臂_(3)
glTranslatef();//移動手肘到中心點_(2)
drawHand();//畫手函式(步驟1先畫)
glPopMatrix();//還原
HW2_openCV讀圖檔
Codeblock專案>Console App貝殼專案
#include <opencv/highgui.h>///(opencv目錄)High高級GUI使用者介面
using namespace std;
int main()
{
IplImage * img = cvLoadImage("c:/image.png");
cvShowImage("my2DImage",img);///秀圖
cvWaitKey(0);///讓程式不要直接結束
}
Step 1 設定專案Build Option設定compiler include:C:\OpenCV2.0\include
Step 2 Search directories > Linker lib:C:\opencv2.1\lib
Step 3 Link Setting cv210,cxcore210,highgui210
成功跑出圖片
HW3_轉動地球myEarth.zip專案
安裝opencv2.1、freeglut後打開myEarth.zip.cpp並執行





沒有留言:
張貼留言