Ask Your Question

Revision history [back]

I am not sure if image.zeros() is the way to go... according to the documentation you should do this:

cv::Mat img;
img = cv::Mat::zeros(rows, cols, CV_32F);

I hope this helps