First time here? Check out the FAQ!
answered 2014-04-30 01:56:43 -0600
If you first image is
Mat img = imread("lena.jpg");
then your 2nd image should be like
Mat img2 = Mat(img.size(),img.type());