EVP Toolbox imwrite - Write image to file Calling Sequence imwrite(im, filename) Parameters * im: M-by-N-by-3 (color image) matrix, must be uint8. * filename: A string that specifies the name of the output file. Description imwrite writes a matrix into a image file. The format of the file is inferred from the extension in the filename parameter. Currently the following file formats are supported: * Windows bitmaps - BMP, DIB; * JPEG files - JPEG, JPG, JPE; * Portable Network Graphics - PNG; * Portable image format - PBM, PGM, PPM; * Sun rasters - SR, RAS; * TIFF files - TIFF, TIF. Examples im = imread( 'lena.png' ); imwrite(im, 'lena.jpg'); Bugs and Shortcomings Support RGB image only.