Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this already won't compile:

Mat mat1 = new Mat(..);

do not use new anywhere with opencv in c++, a simple

Mat mat1 = Mat(..);
Mat mat2 = Mat(..);
Mat res;
divide(mat1, mat2, res);

should do.

this already won't compile:

Mat mat1 = new Mat(..);

do not use new anywhere with opencv in c++, a simple

Mat mat1 = Mat(..);
Mat mat2 = Mat(..);
Mat res;
divide(mat1, mat2, res);
res, 256);

should do.