Paste a Mat onto another Mat

asked 2016-09-01 06:42:37 -0500

elish gravatar image

Hi,

I am creating an augmented reality app in android using opencv,
In "onCameraFrame" before returning the Mat (which is the preview frame) i want to paste on it another smaller Mat, i am doing it but nothing is happening, this is the line -

ImageMat.copyTo(frame.submat(120, ImageMat.rows(), 120, ImageMat.cols()));

Can any one help?
Thanks!!

edit retag flag offensive close merge delete