Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may need to make your Mat continues before writing to the file like,

image = (image.reshape(0,1));

See OpenCV Mat Documentation for more details