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

#include <ImageFile.h>

Inheritance diagram for celeste::ImageFile:
Inheritance graph

Public Member Functions

 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 ()
 
virtual int Read (char *)=0
 
virtual void Write (char *)=0
 

Protected Attributes

int *** mRGB
 
unsigned char ** mPixels
 
float ** mFloats
 
int mWidth
 
int mHeight
 
bool mVerbosity
 

Detailed Description

Definition at line 47 of file ImageFile.h.

Constructor & Destructor Documentation

celeste::ImageFile::ImageFile ( )

Definition at line 33 of file ImageFile.cpp.

References mFloats, mHeight, mPixels, mRGB, mVerbosity, and mWidth.

celeste::ImageFile::~ImageFile ( )
virtual

Definition at line 43 of file ImageFile.cpp.

References Deallocate().

Member Function Documentation

void celeste::ImageFile::Allocate ( int  dataset)
void celeste::ImageFile::Deallocate ( )

Definition at line 92 of file ImageFile.cpp.

References mFloats, mHeight, mPixels, and mRGB.

Referenced by celeste::PGMImage::Write(), celeste::PGMImage::WriteScaled(), and ~ImageFile().

int celeste::ImageFile::GetHeight ( )
inline

Definition at line 60 of file ImageFile.h.

References mHeight.

unsigned char celeste::ImageFile::GetPixel ( int  x,
int  y 
)

Definition at line 120 of file ImageFile.cpp.

References mPixels.

float ** celeste::ImageFile::GetPixels ( void  )

Definition at line 139 of file ImageFile.cpp.

References Allocate(), celeste::kFloats, mFloats, mHeight, mPixels, and mWidth.

int*** celeste::ImageFile::GetRGBPixels ( void  )
inline

Definition at line 67 of file ImageFile.h.

References mRGB.

int celeste::ImageFile::GetWidth ( )
inline

Definition at line 56 of file ImageFile.h.

References mWidth.

virtual int celeste::ImageFile::Read ( char *  )
pure virtual

Implemented in celeste::PGMImage.

void celeste::ImageFile::SetHeight ( int  h)
inline

Definition at line 59 of file ImageFile.h.

References vigra_ext::EMoR::h, and mHeight.

void celeste::ImageFile::SetPixel ( int  x,
int  y,
unsigned char  p 
)
inline

Definition at line 63 of file ImageFile.h.

References mPixels.

void celeste::ImageFile::SetPixels ( float **  pixels)

Definition at line 130 of file ImageFile.cpp.

References mHeight, mPixels, and mWidth.

void celeste::ImageFile::SetWidth ( int  w)
inline

Definition at line 55 of file ImageFile.h.

References mWidth.

virtual void celeste::ImageFile::Write ( char *  )
pure virtual

Implemented in celeste::PGMImage.

Member Data Documentation

float** celeste::ImageFile::mFloats
protected

Definition at line 83 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetPixels(), and ImageFile().

int celeste::ImageFile::mHeight
protected
unsigned char** celeste::ImageFile::mPixels
protected
int*** celeste::ImageFile::mRGB
protected

Definition at line 81 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetRGBPixels(), ImageFile(), and celeste::PGMImage::Read().

bool celeste::ImageFile::mVerbosity
protected

Definition at line 86 of file ImageFile.h.

Referenced by ImageFile(), celeste::PGMImage::Read(), and celeste::PGMImage::Write().

int celeste::ImageFile::mWidth
protected

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