In OpenCV prior to 3.0, you can see at the beginning of core.hpp
that OpenCV is using std::vector
internally:
#ifndef __OPENCV_CORE_HPP__
#define __OPENCV_CORE_HPP__
...
#include <vector>
...
/*!
amespace cv
Namespace where all the C++ OpenCV functionality resides
*/
namespace cv {
...
using std::vector;
...
So you can access std::vector
also through cv
namespace like:
cv::vector
In fact, internally OpenCV refers to std::vector
just as vector
.
In OpenCV 3.0 instead the #using std::vector
is not present, and internally OpenCV refers always to std::vector
.
You'll be able to use cv::vector
adding this into your code:
namespace cv
{
using std::vector;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…