Classes | Defines | Functions
pnmfile.h File Reference
#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>
#include "image.h"
#include "misc.h"
Include dependency graph for pnmfile.h:
This graph shows which files directly or indirectly include this file:

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

#define BUF_SIZE   256

Definition at line 31 of file pnmfile.h.


Function Documentation

template<class T >
void load_image ( image< T > **  im,
const char *  name 
)

Definition at line 182 of file pnmfile.h.

static image<uchar>* loadPBM ( const char *  name) [static]

Definition at line 81 of file pnmfile.h.

static image<uchar>* loadPGM ( const char *  name) [static]

Definition at line 113 of file pnmfile.h.

static image<rgb>* loadPPM ( const char *  name) [static]

Definition at line 147 of file pnmfile.h.

static void pnm_read ( std::ifstream &  file,
char *  buf 
) [static]

Definition at line 65 of file pnmfile.h.

static void read_packed ( unsigned char *  data,
int  size,
std::ifstream &  f 
) [static]

Definition at line 35 of file pnmfile.h.

template<class T >
void save_image ( image< T > *  im,
const char *  name 
)

Definition at line 202 of file pnmfile.h.

static void savePBM ( image< uchar > *  im,
const char *  name 
) [static]

Definition at line 103 of file pnmfile.h.

static void savePGM ( image< uchar > *  im,
const char *  name 
) [static]

Definition at line 138 of file pnmfile.h.

static void savePPM ( image< rgb > *  im,
const char *  name 
) [static]

Definition at line 172 of file pnmfile.h.

static void write_packed ( unsigned char *  data,
int  size,
std::ofstream &  f 
) [static]

Definition at line 49 of file pnmfile.h.



iri_leaf_fitting
Author(s): Sergi Foix
autogenerated on Fri Dec 6 2013 20:28:17