Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
celeste::PGMImage Class Reference

#include <PGMImage.h>

Inheritance diagram for celeste::PGMImage:
Inheritance graph

Public Member Functions

 PGMImage ()
 
 PGMImage (char *file)
 
virtual ~PGMImage ()
 
int Read (char *)
 
void Write (char *)
 
void Write (char *, float **, int, int)
 
void Write (char *, float ***, int, int)
 
void Write (char *, float **, int, int, int)
 
void WriteScaled (char *filename, float **output, int height, int width)
 
- Public Member Functions inherited from celeste::ImageFile
 ImageFile ()
 
virtual ~ImageFile ()
 
void SetWidth (int w)
 
int GetWidth ()
 
void SetHeight (int h)
 
int GetHeight ()
 
void SetPixel (int x, int y, unsigned char p)
 
unsigned char GetPixel (int x, int y)
 
int *** GetRGBPixels (void)
 
void SetPixels (float **)
 
float ** GetPixels (void)
 
void Allocate (int dataset)
 
void Deallocate ()
 

Private Attributes

char mMagicNumber [2]
 
int mNumPixels
 
int mNumLevels
 
int mNumBits
 

Additional Inherited Members

- Protected Attributes inherited from celeste::ImageFile
int *** mRGB
 
unsigned char ** mPixels
 
float ** mFloats
 
int mWidth
 
int mHeight
 
bool mVerbosity
 

Detailed Description

Definition at line 36 of file PGMImage.h.

Constructor & Destructor Documentation

celeste::PGMImage::PGMImage ( )
inline

Definition at line 40 of file PGMImage.h.

celeste::PGMImage::PGMImage ( char *  file)
inlineexplicit

Definition at line 41 of file PGMImage.h.

References Read().

virtual celeste::PGMImage::~PGMImage ( )
inlinevirtual

Definition at line 42 of file PGMImage.h.

Member Function Documentation

int celeste::PGMImage::Read ( char *  file)
virtual
void celeste::PGMImage::Write ( char *  file)
virtual
void celeste::PGMImage::Write ( char *  filename,
float **  output,
int  height,
int  width 
)
void celeste::PGMImage::Write ( char *  filename,
float ***  pixels,
int  height,
int  width 
)

Definition at line 238 of file PGMImage.cpp.

void celeste::PGMImage::Write ( char *  filename,
float **  pixels,
int  height,
int  width,
int  channel 
)

Definition at line 267 of file PGMImage.cpp.

References celeste::max(), and celeste::min().

void celeste::PGMImage::WriteScaled ( char *  filename,
float **  output,
int  height,
int  width 
)

Member Data Documentation

char celeste::PGMImage::mMagicNumber[2]
private

Definition at line 55 of file PGMImage.h.

Referenced by Read(), Write(), and WriteScaled().

int celeste::PGMImage::mNumBits
private

Definition at line 58 of file PGMImage.h.

Referenced by Read().

int celeste::PGMImage::mNumLevels
private

Definition at line 57 of file PGMImage.h.

Referenced by Read(), Write(), and WriteScaled().

int celeste::PGMImage::mNumPixels
private

Definition at line 56 of file PGMImage.h.

Referenced by Read().


The documentation for this class was generated from the following files: