Ask Your Question

Revision history [back]

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);