Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Replace subsection of Mat with another Mat.

I have an image stored in a Mat object (BigImage). I also have a smaller Mat image that fits inside the bounds of first mat object (SmallImage).

Currently I'm replacing a section of BigImage with SmallImage. I'm doing this by iterating and doing a pixel by pixel assignment from SmallImage to BigImage.

Is there a faster way of doing thing?