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

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  )  [inline]

Definition at line 41 of file PGMImage.h.

References Read().

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(), celeste::ImageFile::mHeight, mMagicNumber, mNumBits, mNumLevels, mNumPixels, celeste::ImageFile::mPixels, celeste::ImageFile::mRGB, celeste::ImageFile::mVerbosity, celeste::ImageFile::mWidth, and vigra_ext::pow().

Referenced by PGMImage().

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, celeste::ImageFile::mHeight, mMagicNumber, mNumLevels, celeste::ImageFile::mPixels, celeste::ImageFile::mWidth, and Write().

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

Implements celeste::ImageFile.

Definition at line 192 of file PGMImage.cpp.

References celeste::ImageFile::mHeight, mMagicNumber, mNumLevels, celeste::ImageFile::mPixels, celeste::ImageFile::mVerbosity, and celeste::ImageFile::mWidth.

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::ImageFile::mHeight, celeste::min(), mMagicNumber, mNumLevels, celeste::ImageFile::mPixels, celeste::ImageFile::mWidth, 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 20 Oct 2014 for Hugintrunk by  doxygen 1.4.7