First time here? Check out the FAQ!
answered 2013-05-03 02:30:47 -0600
You can simply call Highgui.imwrite on the Mat as Alexander has already answered here. Quoting from the docs of function:
Mat
The image format is chosen based on the filename extension.