1 | initial version |
I had the exact same frustrating problem using OpenCv 2.4.8 with Professional MVS 2013. Eventually I worked around the problem by doing the following:
int sz[] = { dim0, dim1, dim2 };
Mat B;
B.create(3, sz, CV_32F);
B = Scalar(0);//set to zeros
Instead of:
int sz[] = { dim0, dim1, dim2 };
Mat B = Mat::zeros(3, sz, CV_32F);
Hope this helps
2 | Fixed problem tab vs. white space issue |
I had the exact same frustrating problem using OpenCv 2.4.8 with Professional MVS 2013. Eventually I worked around the problem by doing the following:
int sz[] = { dim0, dim1, dim2 };
Mat B;
B.create(3, sz, CV_32F);
B = Scalar(0);//set to zeros
Instead of:
int sz[] = { dim0, dim1, dim2 };
Mat B = Mat::zeros(3, sz, CV_32F);
Hope this helps