I have a small Image:
Mat myImage;
This image is of Size(100,100)
. Now I would like to enlarge the dimension of this image to Size(1000,1000)
(filling the rest of the space with black)
I could do in this way (but I think there could be a faster solution)
Mat largerImage(Size(1000,1000),myImage.type());
myImage.copyTo(largerImage());
How can I directly "expand" myImage
?