First time here? Check out the FAQ!
answered 2020-04-07 02:19:03 -0600
How about this:
Mat new_img = Mat::zeros(1, 49, CV_64FC1);
Or if you wanna create a Mat similar like some existing image:
Mat new_img = Mat::zeros(old_img.rows, old_img.cols, CV_64FC1);