这里需要帮助......我刚从程序代码中留下了这些错误 . 当我尝试构建我的程序时,从mat.hpp文件继续弹出类cv :: Mat的错误 .
../../gitRepo/recotraffic2.git/include/opencv2/core/mat.hpp|58|error:无效使用不完整类型'class cv :: Mat'|
inline void Mat::initEmpty()
{
flags = MAGIC_VAL;
dims = rows = cols = 0;
data = datastart = dataend = datalimit = 0;
refcount = 0;
allocator = 0;
}
inline Mat::Mat() : size(&rows)
{
initEmpty();
}
inline Mat::Mat(int _rows, int _cols, int _type) : size(&rows)
{
initEmpty();
create(_rows, _cols, _type);
}
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) : size(&rows)
{
initEmpty();
create(_rows, _cols, _type);
*this = _s;
}
然后base.hpp也出现了以下错误:
/usr/local/include/opencv2/core/base.hpp|627|error:'class cv :: Mat'的前向声明|
class CV_EXPORTS Mat;