mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
implement _OutputArray::assign() for _OutputArrays of type MATX
This commit is contained in:
parent
b2a5e66fc5
commit
e97d18ba81
@ -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, "");
|
||||
|
Loading…
Reference in New Issue
Block a user