Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Issue in Mat type in Android+OpenCV

double[] labels = {0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}; Mat labelsMat = new Mat(10,1, CvType.CV_32FC1); labelsMat.put(10, 1, labels); Log.d("Value of labels Mat is:: ",""+labelsMat.get(10, 1));

It's printing Null for labelsMat. Can anyone please tell me where i'm doing wrong?