cpe::image_io Class Reference

Helper class for I/O. More...

List of all members.

Static Public Member Functions

static void export_ppm (const std::string &filename, const image &pic)
 Export the picture into ppm format (ascii)
static void export_ppm (const std::string &filename, const z_buffer &buffer)
 Export the z-buffer as a gray picture into ppm format (ascii)
static image read_ppm (const std::string &filename)
 read a ppm picture format

Detailed Description

Helper class for I/O.


Member Function Documentation

void cpe::image_io::export_ppm ( const std::string &  filename,
const image pic 
) [static]

Export the picture into ppm format (ascii)

Parameters:
std::stringfilename: file to store the picture
imagepic: image to store

References cpe::image::get_Nx(), and cpe::image::get_Ny().

Referenced by cpe::image::export_file().

+ Here is the call graph for this function:

static void cpe::image_io::export_ppm ( const std::string &  filename,
const z_buffer &  buffer 
) [static]

Export the z-buffer as a gray picture into ppm format (ascii)

Parameters:
std::stringfilename: file to store the picture
z_bufferbuffer: depth-map to store
image cpe::image_io::read_ppm ( const std::string &  filename) [static]

read a ppm picture format

Parameters:
std::stringfilename: path of the file to read

Referenced by cpe::image::image().


The documentation for this class was generated from the following files: