include <opencv2/opencv.hpp>
include <iostream>
include <cassert>
include <cmath>
include <fstream>
using namespace std;
using namespace cv;
C++程序,使用了opencv,上面是头文件和命名空间,程序里有vector,为啥不报错,能正常编译运行?
并没有存在。。
你用的是cv::vector,而不是std::vector
opencv里是应该有类似这样的代码
include <vector>
namespace cv {
using std::vector;
}
因为OpenCV有cv::vector…