Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

vetFrameRGBETI Class Reference

#include <vetFrameRGBETI.h>

Inheritance diagram for vetFrameRGBETI:

vetFrame

Public Member Functions

 vetFrameRGBETI ()
 vetFrameRGBETI (unsigned int width, unsigned int height)
 Create an image with the given dimensions.
 vetFrameRGBETI (vetFrameCache &)
 Create an image from another image Copy Constructor.
 vetFrameRGBETI (vetFrameCache24 &)
 Copy Constructor.
 vetFrameRGBETI (vetFrameRGB &)
 Copy Constructor.
unsigned int getWidth ()
 Read current image's width.
unsigned int getHeight ()
 Read current image's height.
int setPixel (unsigned int x, unsigned int y, PixelRGB p)
 Set pixel (x, y) to the specified value, conversion to PixelGrey is implemented.
int getPixel (unsigned int x, unsigned int y, PixelRGB &p)
vetFrameRGBETIoperator>> (vetFrameCache &)
vetFrameRGBETIoperator>> (vetFrameCache24 &)
vetFrameRGBETIoperator>> (vetFrameRGB &)
vetFrameRGBETIoperator>> (vetFrameGrey &)
void operator<< (vetFrameCache &)
void operator<< (vetFrameCache24 &)
void operator<< (vetFrameRGB &)
void operator<< (vetFrameGrey &)

Detailed Description

An image consisting of red, green and blue pixels.

The image is stored as an array of ints, each pixel spanning three ints (one for each of its red, green and blue values).

Definition at line 35 of file vetFrameRGBETI.h.


Constructor & Destructor Documentation

vetFrameRGBETI::vetFrameRGBETI vetFrameCache &  img  ) 
 

Create an image from another image Copy Constructor.

Initialise to a new RGBImage identical to the specified image

Parameters:
img The RGBImage to copy

Definition at line 26 of file vetFrameRGBETI.cpp.


Member Function Documentation

unsigned int vetFrameRGBETI::getHeight  )  [inline]
 

Read current image's height.

Returns:
Height in pixel.

Reimplemented from vetFrame.

Definition at line 61 of file vetFrameRGBETI.h.

int vetFrameRGBETI::getPixel unsigned int  x,
unsigned int  y,
PixelRGB &  p
 

Method to return the brightness for pixel (x,y).

Note:
No check is made that x and y are in range.
Parameters:
x,y The coordinates of the pixel.
p Reference to the Pixel to store the pixels value in.

Definition at line 63 of file vetFrameRGBETI.cpp.

References VETRET_OK, and VETRET_PARAM_ERR.

unsigned int vetFrameRGBETI::getWidth  )  [inline]
 

Read current image's width.

Returns:
Width in pixel.

Reimplemented from vetFrame.

Definition at line 60 of file vetFrameRGBETI.h.

int vetFrameRGBETI::setPixel unsigned int  x,
unsigned int  y,
PixelRGB  p
 

Set pixel (x, y) to the specified value, conversion to PixelGrey is implemented.

Parameters:
x x position of the pixel.
y y position of the pixel.
p new value for the selected coords.
Note:
No check is made that x and y are in range.

Definition at line 43 of file vetFrameRGBETI.cpp.

References VETRET_OK, and VETRET_PARAM_ERR.


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 11:59:38 2006 for VETLib by  doxygen 1.4.4