Ask Your Question

Revision history [back]

Copy smaller mat to part of bigger mat

Hello everyone,

I have a mat1 (320x100), that I want to copy to a part of a bigger mat2 (320x480), so mat1 starts at (0, 75) from mat2 and ends at (320, 175). How do I do this? I would also like to now how to create a mat of a given color (e.g. mat3 (320x480) that is totally blue). How do I do this? I am using OpenCV 3.4.6 for android.

Thank you in advance