Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

convert a Mat type to be a type of frame Mat

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 ?