我的安裝環境是 Vista,測試環境是 Visual Studio 2005,使用前需至「Tools->Options->Projects and Solutions VC++ Directories」作設定。
- Include files
C:\Program Files\OpenCV\otherlibs\cvcam\include
C:\Program Files\OpenCV\otherlibs\highgui
C:\Program Files\OpenCV\ml\include
C:\Program Files\OpenCV\cxcore\include
C:\Program Files\OpenCV\cvaux\include
C:\Program Files\OpenCV\cv\include - Library files
C:\Program Files\OpenCV\lib
#include "stdafx.h" #include <cxcore.h> #include <highgui.h> int _tmain(int argc, _TCHAR* argv[]) { IplImage *pImage = cvLoadImage("test.png", 1); if(!pImage) fprintf(stderr, "Can not open image file\n"); cvNamedWindow("OpenCv Win", 1); cvShowImage("OpenCv Win", pImage); cvWaitKey(); cvDestroyWindow("OpenCv Win"); cvReleaseImage(&pImage); return 0; }
下載點
OpenCV 1.0
OpenCV 1.0rc1
OpenCV 中文網站
API 參考
OpenCV 1.0 API Reference
OpenCV 相關網誌、網站昨日
OpenCV 中文網站