add unit test around Mat::push_back()

add template specialization Mat::push_back() for MatExpr paramters

extend push_back MatExpr to mat in unit test

cast to object instead of reference

test with multi-row MatExpr input
This commit is contained in:
Youssef Kashef
2015-06-05 11:46:16 +02:00
parent 424c2bddb3
commit 790ef21a60
2 changed files with 52 additions and 0 deletions

View File

@@ -1096,6 +1096,12 @@ void Mat::push_back(const Mat_<_Tp>& m)
push_back((const Mat&)m);
}
template<> inline
void Mat::push_back(const MatExpr& expr)
{
push_back(static_cast<Mat>(expr));
}
///////////////////////////// MatSize ////////////////////////////
inline