1 | initial version |
In Java, there is a function Mat.dump()
that prints all the values of the Mat object as a string.
Another option is to iterate over pixels with Mat.get()
, but I think it's too slow to do it just for debugging, so you may use one of the get()
variations that takes a Java array as the third argument and copy the entire Mat object to a native Java array thus enabling its values to be viewed via your debugger.
I'm not aware of any other way like a debugger plug-in that would let you see individual pixel values.
2 | No.2 Revision |
In Java, there is a function Mat.dump()
and Mat.toString()
that prints all the values of the Mat object as a string. string in a format that is similar to Matlab's.
Another option is to iterate over pixels with Mat.get()
, but I think it's too slow to do it just for debugging, so you may use one of the get()
variations that takes a Java array as the third argument and copy the entire Mat object to a native Java array thus enabling its values to be viewed via your debugger.
I'm not aware of any other way like a debugger plug-in that would let you see individual pixel values.