implement _OutputArray::assign() for _OutputArrays of type MATX

This commit is contained in:
Nicu Știurcă 2015-01-19 15:26:51 -05:00
parent b2a5e66fc5
commit e97d18ba81

View File

@ -2644,6 +2644,10 @@ void _OutputArray::assign(const UMat& u) const
{
u.copyTo(*(Mat*)obj); // TODO check u.getMat()
}
else if (k == MATX)
{
u.copyTo(getMat()); // TODO check u.getMat()
}
else
{
CV_Error(Error::StsNotImplemented, "");
@ -2662,6 +2666,10 @@ void _OutputArray::assign(const Mat& m) const
{
*(Mat*)obj = m;
}
else if (k == MATX)
{
getMat() = m;
}
else
{
CV_Error(Error::StsNotImplemented, "");