using namespace std;using namespace cv;
C++程序,使用了opencv,上面是头文件和命名空间,程序里有vector,为啥不报错,能正常编译运行?
人生最曼妙的风景,竟是内心的淡定与从容!
Because OpenCV has cv::vector…
does not exist. .
There should be code similar to this in opencv
namespace cv {using std::vector;}
You are using cv::vector, not std::vector
Because OpenCV has cv::vector…
does not exist. .
There should be code similar to this in opencv
include <vector>
namespace cv {
using std::vector;
}
You are using cv::vector, not std::vector