Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can simply call Highgui.imwrite on the Mat as Alexander has already answered here. Quoting from the docs of function:

The image format is chosen based on the filename extension.