Hugintrunk
0.1
|
#include <PGMImage.h>
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 |
Definition at line 36 of file PGMImage.h.
|
inline |
Definition at line 40 of file PGMImage.h.
|
inlineexplicit |
Definition at line 41 of file PGMImage.h.
References Read().
|
inlinevirtual |
Definition at line 42 of file PGMImage.h.
|
virtual |
Implements celeste::ImageFile.
Definition at line 34 of file PGMImage.cpp.
References celeste::ImageFile::Allocate(), 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().
|
virtual |
Implements celeste::ImageFile.
Definition at line 190 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::Write | ( | char * | filename, |
float ** | output, | ||
int | height, | ||
int | width | ||
) |
Definition at line 214 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 * | 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 | ||
) |
Definition at line 334 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::GaborFilter::Save(), and celeste::ContrastFilter::Save().
|
private |
Definition at line 55 of file PGMImage.h.
Referenced by Read(), Write(), and WriteScaled().
|
private |
Definition at line 58 of file PGMImage.h.
Referenced by Read().
|
private |
Definition at line 57 of file PGMImage.h.
Referenced by Read(), Write(), and WriteScaled().
|
private |
Definition at line 56 of file PGMImage.h.
Referenced by Read().