libelas
Classes | Macros | Typedefs | Functions
image.h File Reference
#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>

Go to the source code of this file.

Classes

struct  rgb
 
class  image< T >
 
class  pnm_error
 

Macros

#define imRef(im, x, y)   (im->access[y][x])
 
#define imPtr(im, x, y)   &(im->access[y][x])
 
#define BUF_SIZE   256
 

Typedefs

typedef unsigned char uchar
 

Functions

bool operator== (const rgb &a, const rgb &b)
 
void pnm_read (std::ifstream &file, char *buf)
 
image< uchar > * loadPGM (const char *name)
 
void savePGM (image< uchar > *im, const char *name)
 

Macro Definition Documentation

#define BUF_SIZE   256
#define imPtr (   im,
  x,
 
)    &(im->access[y][x])
#define imRef (   im,
  x,
 
)    (im->access[y][x])

Typedef Documentation

typedef unsigned char uchar

Function Documentation

image<uchar>* loadPGM ( const char *  name)
bool operator== ( const rgb a,
const rgb b 
)
inline
void pnm_read ( std::ifstream &  file,
char *  buf 
)
void savePGM ( image< uchar > *  im,
const char *  name 
)