Public Member Functions | Protected Member Functions | Private Attributes
puma2::GrayLevelImage8 Class Reference

Imageclass for an 8-bit gray level image. More...

#include <GrayLevelImage8.h>

Inheritance diagram for puma2::GrayLevelImage8:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Imageclass for an 8-bit gray level image.

Definition at line 16 of file GrayLevelImage8.h.


Constructor & Destructor Documentation

GrayLevelImage8::GrayLevelImage8 ( int  xwidth = 0,
int  height = 0 
)

Default constructor.

Definition at line 7 of file GrayLevelImage8.cpp.

Definition at line 23 of file GrayLevelImage8.cpp.

GrayLevelImage8::GrayLevelImage8 ( int  width,
int  height,
GrayLevelImage8 m,
int  xo,
int  yo 
)

Subimage constructor:

Parameters:
widthhorizontal size
heightvertical size
mPointer to master image of which the image becomes a subimage
xooffset for horizontal position of subimage in master image
yooffset 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.


Member Function Documentation

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)

see Image::readFromFile()

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

see Image::writeToFile()

Reimplemented from puma2::TBaseImg< byte >.

Definition at line 51 of file GrayLevelImage8.cpp.


Member Data Documentation

reset internal IPL structures after resize

Definition at line 85 of file GrayLevelImage8.h.


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


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43