IO Namespace Reference


Detailed Description

Contains all class and functions related to file reading and writing


Classes

class  AVI
class  BMP
class  PGM
class  Raw

Functions

void readAVIFrame (const char *filename, color< unsigned char > *&frame, unsigned int &frame_width, unsigned int &frame_height, unsigned int frame_nb)
void readAVI (const char *filename, color< unsigned char > *&image, unsigned int &frame_width, unsigned int &frame_height, unsigned int &nb_frames)
void readBMP (const char *filename, color< unsigned char > *&image, unsigned int &width, unsigned int &height)
void writeBMP (const char *filename, const color< unsigned char > *image, unsigned int width, unsigned int height)
void readPGM (const char *filename, unsigned char *&image, unsigned int &width, unsigned int &height)
void writePGM (const char *filename, const unsigned char *image, unsigned int width, unsigned int height)
template<typename DataType>
void readRaw (const char *filename, DataType *&image, unsigned int size)
template<typename DataType>
void writeRaw (const char *filename, const DataType *image, unsigned int size)
void glScreenshot (color< unsigned char > *&image, unsigned int &width, unsigned int &height)


Function Documentation

void IO::glScreenshot ( color< unsigned char > *&  image,
unsigned int &  width,
unsigned int &  height 
)

Read OpenGL buffer and create an raw 24bit image

void IO::readAVI ( const char *  filename,
color< unsigned char > *&  image,
unsigned int &  frame_width,
unsigned int &  frame_height,
unsigned int &  nb_frames 
)

read the whole AVI movie in a 3D image

void IO::readAVIFrame ( const char *  filename,
color< unsigned char > *&  frame,
unsigned int &  frame_width,
unsigned int &  frame_height,
unsigned int  frame_nb 
)

read a AVI frame of the movie in a 2D image

void IO::readBMP ( const char *  filename,
color< unsigned char > *&  image,
unsigned int &  width,
unsigned int &  height 
)

Read a 2D image from a BMP file

void IO::readPGM ( const char *  filename,
unsigned char *&  image,
unsigned int &  width,
unsigned int &  height 
)

Read a 2D image from a PGM file

template<typename DataType>
static void IO::readRaw ( const char *  filename,
DataType *&  image,
unsigned int  size 
) [inline]

Read a N-D image

References IO::Raw::read().

void IO::writeBMP ( const char *  filename,
const color< unsigned char > *  image,
unsigned int  width,
unsigned int  height 
)

Write a 2D image in a BMP file

void IO::writePGM ( const char *  filename,
const unsigned char *  image,
unsigned int  width,
unsigned int  height 
)

Write a 2D image from a PGM file

template<typename DataType>
static void IO::writeRaw ( const char *  filename,
const DataType *  image,
unsigned int  size 
) [inline]

Write a N-D image

References IO::Raw::write().


Generated on Tue Aug 4 17:57:43 2009 for libvd by  doxygen 1.5.5