Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
byte[] data = new byte[ (int) (mGray.total()) ];
mGray.get(0,  0, data);
byte[] data = new byte[ (int) (mGray.total()) ];
mGray.get(0,  0, data);

Note: this works only if mGray is of CV_8UC1 type.