Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

convert a Mat type to be a type of frame Mat

$
0
0
Hi, I am working on an augmented reality app in android, In "onCameraFrame" i am trying to overlay a small Mat which is an image that was converted from bitmap, onto frame Mat that will be returned to camera preview, i am using submat to do it. The problem is that the 2 Mat objects need to be the same type and i can not get the way to do it. when i print the type of the small mat - ImageMat.type() i get 24. when i print the frame Mat - rgba.type() i get 16. How can i make the first one also 16 ?

Viewing all articles
Browse latest Browse all 4615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>