Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have openCV matrix in Java and I would like to print out the content of it.I tried the toString() function as follows descriptor.toString() so I could achieve this form

"[[1,2,3,4],[4,5,6,7],[7,8,9,10]]"

where each array is the ith row in the matrix but I got the following result. I tried to remove the toString but still the same problem.

Mat [ 3*4*CV_8UC1, isCont=true, isSubmat=false, nativeObj=0x5dc93a48, dataAddr=0x5d5d35f0]

Where 3 is the number of rows and 4 is the number of columns.

Any help how can I get the matrix content?!

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.