Save an image
imwrite(filename, img[, params])
Path of file.
Image to be saved (Mat).
Parameters specific to the format.
imwrite
saves an image to the specified file.
scicv_Init(); // Load a PNG image and save it to JPG img = imread(getSampleImage("puffin.png")); imwrite(fullfile(TMPDIR, "puffin.jpg"), img); delete_Mat(img); | ![]() | ![]() |