Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-11-16 01:53:49 -0600

Nbb gravatar image

How to initialize Mat size and fill it with zeros in a class ?

How do I initialize a Mat with a certain size and fill it with zeros in a class ? The simple

cv::Mat test(cv::Size(1, 49), CV_64FC1);

does not work.

How to initialize Mat size and fill it with zeros in a class ?

How do I initialize a Mat with a certain size and fill it with zeros in a class ? The simple

cv::Mat test(cv::Size(1, 49), CV_64FC1);

does not work.work. Sorry this worked

cv::Mat texture_ = cv::Mat::zeros(1, cv::Size(1,49), CV_64FC1);

How to initialize Mat size and fill it with zeros in a class ?

How do I initialize a Mat with a certain size and fill it with zeros in a class ? The simple

cv::Mat test(cv::Size(1, 49), CV_64FC1);

does not work. Sorry this worked

cv::Mat texture_ = cv::Mat::zeros(1, cv::Size(1,49), cv::Mat::zeros(cv::Size(1,49), CV_64FC1);