/** 根据自己机器上的OpenCV版本定义宏
* 例如使用OpenCV 2.1,则定义宏RC_OPENCV_2_1_0;
* 使用OpenCV 2.2,则定义宏RC_OPENCV_2_2_0;
* 以此类推
* 如果使用debug版本,定义宏 _DEBUG, release 版本不需要定义宏
* 注意opencv的不同版本需要包含的头文件时不一样的
*/
//#define _DEBUG
#define RC_OPENCV_2_3_1
#ifdef _DEBUG
#ifdef RC_OPENCV_2_1_0
#pragma comment( lib, "cxcore210d.lib" )
#pragma comment( lib, "cv210d.lib" )
#pragma comment( lib, "highgui210d.lib" )
#include <cv.h>
#include <highgui.h>
#endif
#ifdef RC_OPENCV_2_2_0
#pragma comment( lib, "opencv_core220d.lib" )
#pragma comment( lib, "opencv_highgui220d.lib" )
#pragma comment( lib, "opencv_imgproc220d.lib" )
#endif
* 例如使用OpenCV 2.1,则定义宏RC_OPENCV_2_1_0;
* 使用OpenCV 2.2,则定义宏RC_OPENCV_2_2_0;
* 以此类推
* 如果使用debug版本,定义宏 _DEBUG, release 版本不需要定义宏
* 注意opencv的不同版本需要包含的头文件时不一样的
*/
//#define _DEBUG
#define RC_OPENCV_2_3_1
#ifdef _DEBUG
#ifdef RC_OPENCV_2_1_0
#pragma comment( lib, "cxcore210d.lib" )
#pragma comment( lib, "cv210d.lib" )
#pragma comment( lib, "highgui210d.lib" )
#include <cv.h>
#include <highgui.h>
#endif
#ifdef RC_OPENCV_2_2_0
#pragma comment( lib, "opencv_core220d.lib" )
#pragma comment( lib, "opencv_highgui220d.lib" )
#pragma comment( lib, "opencv_imgproc220d.lib" )
#endif