opencv中call to non-static member function without an object argument
template<typename_Tp>inlineMatND_<_Tp>&MatND_<_Tp>::operator=(constMatND&m){if(DataTy...
template<typename _Tp> inline MatND_<_Tp>& MatND_<_Tp>::operator = (const MatND& m)
{
if( DataType<_Tp>::type == m.type() )
{
Mat::operator = (m);
return *this;
}
if( DataType<_Tp>::depth == m.depth() )
{
return (*this = m.reshape(DataType<_Tp>::channels));
}
CV_DbgAssert(DataType<_Tp>::channels == m.channels());
m.convertTo(*this, DataType<_Tp>::type);
return *this;
}
在Mat::operator = (m);出现错误
错误提示是call to non-static member function without an object argument 请问是什么原因怎么修改 展开
{
if( DataType<_Tp>::type == m.type() )
{
Mat::operator = (m);
return *this;
}
if( DataType<_Tp>::depth == m.depth() )
{
return (*this = m.reshape(DataType<_Tp>::channels));
}
CV_DbgAssert(DataType<_Tp>::channels == m.channels());
m.convertTo(*this, DataType<_Tp>::type);
return *this;
}
在Mat::operator = (m);出现错误
错误提示是call to non-static member function without an object argument 请问是什么原因怎么修改 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询