celeste::PGMImage Class Reference

#include <PGMImage.h>

Inheritance diagram for celeste::PGMImage:

Inheritance graph
[legend]
List of all members.

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)

Private Attributes

char mMagicNumber [2]
int mNumPixels
int mNumLevels
int mNumBits

Constructor & Destructor Documentation

celeste::PGMImage::PGMImage  )  [inline]
 

Definition at line 40 of file PGMImage.h.

celeste::PGMImage::PGMImage char *  file  )  [inline]
 

Definition at line 41 of file PGMImage.h.

virtual celeste::PGMImage::~PGMImage  )  [inline, virtual]
 

Definition at line 42 of file PGMImage.h.


Member Function Documentation

int celeste::PGMImage::Read char *   )  [virtual]
 

Implements celeste::ImageFile.

Definition at line 36 of file PGMImage.cpp.

References celeste::ImageFile::Allocate(), cerr, celeste::kChars, celeste::kRGB, vigra_ext::log(), mMagicNumber, mNumBits, mNumLevels, mNumPixels, and vigra_ext::pow().

void celeste::PGMImage::Write char *  ,
float **  ,
int  ,
int  ,
int 
 

Definition at line 269 of file PGMImage.cpp.

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

void celeste::PGMImage::Write char *  ,
float ***  ,
int  ,
int 
 

Definition at line 240 of file PGMImage.cpp.

void celeste::PGMImage::Write char *  ,
float **  ,
int  ,
int 
 

Definition at line 216 of file PGMImage.cpp.

References celeste::ImageFile::Allocate(), celeste::ImageFile::Deallocate(), celeste::kChars, mMagicNumber, mNumLevels, and Write().

void celeste::PGMImage::Write char *   )  [virtual]
 

Implements celeste::ImageFile.

Definition at line 192 of file PGMImage.cpp.

References mMagicNumber, and mNumLevels.

Referenced by Write(), and WriteScaled().

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

Definition at line 336 of file PGMImage.cpp.

References celeste::ImageFile::Allocate(), celeste::ImageFile::Deallocate(), celeste::kChars, celeste::max(), celeste::min(), mMagicNumber, mNumLevels, and Write().

Referenced by celeste::LogPolar::Save(), celeste::GaborFilter::Save(), and celeste::ContrastFilter::Save().


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:
Generated on Fri Apr 25 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1