Helper class for I/O. More...
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 |
Helper class for I/O.
void cpe::image_io::export_ppm | ( | const std::string & | filename, |
const image & | pic | ||
) | [static] |
Export the picture into ppm format (ascii)
std::string | filename: file to store the picture |
image | pic: image to store |
References cpe::image::get_Nx(), and cpe::image::get_Ny().
Referenced by cpe::image::export_file().
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)
std::string | filename: file to store the picture |
z_buffer | buffer: depth-map to store |
image cpe::image_io::read_ppm | ( | const std::string & | filename | ) | [static] |
read a ppm picture format
std::string | filename: path of the file to read |
Referenced by cpe::image::image().