Imageclass for an 8-bit gray level image. More...
#include <GrayLevelImage8.h>
Public Member Functions | |
MultiElementImage< byte, 1 > & | asMultiElementImage () |
double | getElementTypeMaximum () const |
double | getElementTypeMinimum () const |
GrayLevelImage8 (int xwidth=0, int height=0) | |
GrayLevelImage8 (const GrayLevelImage8 &) | |
GrayLevelImage8 (int width, int height, GrayLevelImage8 *m, int xo, int yo) | |
operator MultiElementImage< byte, 1 > & () | |
void | operator= (const GrayLevelImage8 &g) |
void | readFromFile (const char *fileName) |
void | writeToFile (const char *fileName) const |
~GrayLevelImage8 () | |
Protected Member Functions | |
virtual void | reset () |
Private Attributes | |
MultiElementImage< byte, 1 > * | alt |
reset internal IPL structures after resize |
Imageclass for an 8-bit gray level image.
Definition at line 16 of file GrayLevelImage8.h.
GrayLevelImage8::GrayLevelImage8 | ( | int | xwidth = 0 , |
int | height = 0 |
||
) |
Default constructor.
Definition at line 7 of file GrayLevelImage8.cpp.
GrayLevelImage8::GrayLevelImage8 | ( | const GrayLevelImage8 & | f | ) |
Definition at line 23 of file GrayLevelImage8.cpp.
GrayLevelImage8::GrayLevelImage8 | ( | int | width, |
int | height, | ||
GrayLevelImage8 * | m, | ||
int | xo, | ||
int | yo | ||
) |
Subimage constructor:
width | horizontal size |
height | vertical size |
m | Pointer to master image of which the image becomes a subimage |
xo | offset for horizontal position of subimage in master image |
yo | offset for vertical position of subimage in master image |
The constructor will do all required checks on the sizes of the images.
Definition at line 15 of file GrayLevelImage8.cpp.
Destructor
Definition at line 34 of file GrayLevelImage8.cpp.
Alternative access method to the image data as MultiElementImage.
Definition at line 41 of file GrayLevelImage8.cpp.
double puma2::GrayLevelImage8::getElementTypeMaximum | ( | ) | const [inline, virtual] |
see Image::getElementTypeMaximum()
Reimplemented from puma2::TBaseImg< byte >.
Definition at line 49 of file GrayLevelImage8.h.
double puma2::GrayLevelImage8::getElementTypeMinimum | ( | ) | const [inline, virtual] |
see Image::getElementTypeMinimum()
Reimplemented from puma2::TBaseImg< byte >.
Definition at line 46 of file GrayLevelImage8.h.
puma2::GrayLevelImage8::operator MultiElementImage< byte, 1 > & | ( | ) | [inline] |
automatic conversion
Advantage: a GrayLevelImage8 can be passed to a function such as Test3<byte,1> directly
Disadvantage: may be confusing as for the overloaded function void test4(SingleElementImage<byte>& g); // automatic choice void test4(MultiElementImage<byte,1>& g); // needs asMultiElementImage()
Definition at line 76 of file GrayLevelImage8.h.
void puma2::GrayLevelImage8::operator= | ( | const GrayLevelImage8 & | g | ) | [inline] |
Definition at line 78 of file GrayLevelImage8.h.
void GrayLevelImage8::readFromFile | ( | const char * | fileName | ) |
Reimplemented from puma2::TBaseImg< byte >.
Definition at line 46 of file GrayLevelImage8.cpp.
void GrayLevelImage8::reset | ( | ) | [protected, virtual] |
Definition at line 56 of file GrayLevelImage8.cpp.
void GrayLevelImage8::writeToFile | ( | const char * | fileName | ) | const |
Reimplemented from puma2::TBaseImg< byte >.
Definition at line 51 of file GrayLevelImage8.cpp.
MultiElementImage<byte,1>* puma2::GrayLevelImage8::alt [private] |
reset internal IPL structures after resize
Definition at line 85 of file GrayLevelImage8.h.