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:

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.



cpl_superpixels
Author(s): Tucker Hermans
autogenerated on Wed Nov 27 2013 11:38:57