Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Let me answer you with the question: are you completely sure you need to serialize Mat object? You can simply store it in one of commonly used formats that does not perform data compresion. For example 'pgm' for gray images or 'ppm' for color images. Your task will be complete and this way you will have no need to write functions of your own.