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

how to use submat for a non square image

$
0
0
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!!

Viewing all articles
Browse latest Browse all 1117