The C++ interface for saveimage. More...

void saveimage (const char *filename, const af::array &img)
 Save an image to disk. More...

Detailed Description

The C++ interface for saveimage.

Function Documentation

void af::saveimage ( const char *  filename,
const af::array img 

Save an image to disk.

// save device array image to disk
saveimage("~/image_out.png", img_to_save);

This software uses the FreeImage open source image library. See for details. FreeImage is used under the (GNU GPL or FIPL), version (license version).

[in]filenamename of the image, including extension
[in]imgimage to write
formats supported: jpeg, bmp, png, tiff, ppm
channels supported: 8 bit (Gray), 24 bit color (RGB), 32 bit (RGBA)