#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>
#include "image.h"
#include "misc.h"
Go to the source code of this file.
Classes |
class | pnm_error |
Defines |
#define | BUF_SIZE 256 |
Functions |
template<class T > |
void | load_image (image< T > **im, const char *name) |
static image< uchar > * | loadPBM (const char *name) |
static image< uchar > * | loadPGM (const char *name) |
static image< rgb > * | loadPPM (const char *name) |
static void | pnm_read (std::ifstream &file, char *buf) |
static void | read_packed (unsigned char *data, int size, std::ifstream &f) |
template<class T > |
void | save_image (image< T > *im, const char *name) |
static void | savePBM (image< uchar > *im, const char *name) |
static void | savePGM (image< uchar > *im, const char *name) |
static void | savePPM (image< rgb > *im, const char *name) |
static void | write_packed (unsigned char *data, int size, std::ofstream &f) |
Define Documentation
Function Documentation
static void pnm_read |
( |
std::ifstream & |
file, |
|
|
char * |
buf |
|
) |
| [static] |
static void read_packed |
( |
unsigned char * |
data, |
|
|
int |
size, |
|
|
std::ifstream & |
f |
|
) |
| [static] |
static void write_packed |
( |
unsigned char * |
data, |
|
|
int |
size, |
|
|
std::ofstream & |
f |
|
) |
| [static] |