Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to use submat for a non square image

Hi,

I am working on an augmented reality app in android,
I am trying to overlay an image that is a shape of a star, its not a full squar onto the camera frame,

       dst.copyTo(submat);

but i get a black square in roi area and in the middle is the star.

How can i limit the size of submat to be the shape i want,
Is there a way to copy pixels instead of rows and cols?

Thank you!!