Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you first image is

Mat img = imread("lena.jpg");

then your 2nd image should be like

Mat img2 = Mat(img.size(),img.type());