0.貼圖座標glTexCoord2f(tx,ty)
glTexCoord2f(0.0,0.0)由左下開始(逆時針跑)(0.0,1.0) <--- (1.0,1.0)
^
(0.0,0.0) ---> (1.0,0.0)
1.OpenCV讀圖、秀圖 OpenCV 2.1.0 vs2008 版
安裝時注意事項
(1)選第二個 add PATH(程式執行會去找exe或dll的目錄路徑)
(2)預設目錄
***bin include lib
bin二進位執行檔
include外掛
2.存成week09_opencv.cpp
```c++
#include <opencv/highgui.h>//使用opencv外掛
int main(){
///Ipl:Intel perfromance library
IplImage *img =cvLoadImage("檔名.png"); //讀檔
cvShowImage("Week09", img); //秀圖
cvWaitKey( 0 ); //等待任意鍵繼續
}
```
2-1.設定Setting-Comiler設定 Include 目錄
2-2.設定Setting-Comiler設定 Lib 目錄
Search Directories
(Compiler) 對應Include目錄 c:\opencv2.1\include
(Linker) 對應Lib目錄 c:\opencv2.1\lib
2-3.設定Setting-Comiler設定 咒語 Linker Settings加入 cv210、cxcore210、highgui210
3. 結合OpenCV 和 OpenGL 把10行茶壺glut+3-5行opnecv讀圖秀圖
沒有留言:
張貼留言