Ask Your Question

Revision history [back]

Use copyTo method again :

Mat a=imread("mygoodpathtofile.png);

UMat b;
a.copyTo(b)

That's all!

Use copyTo method again :

Mat a=imread("mygoodpathtofile.png);
a=imread("mygoodpathtofile.png");

UMat b;
a.copyTo(b)

That's all!