Imageclass for an 8-bit, 3 channel RGB color image. More...
#include <ColorImageRGB8.h>
Public Types | |
typedef byte | B3 [3] |
Public Member Functions | |
void | assign (int i, int j, int n, int v) |
void | assign (int x, int y, int r, int g, int b) |
ColorImageRGB8 (int x=0, int y=0) | |
ColorImageRGB8 (int x, int y, ColorImageRGB8 *m, int xo, int yo) | |
double | getElementTypeMaximum () const |
double | getElementTypeMinimum () const |
void | operator= (const ColorImageRGB8 &o) |
void | readFromFile (const char *fileName) |
void | writeToFile (const char *fileName) const |
Protected Member Functions | |
void | reset () |
Imageclass for an 8-bit, 3 channel RGB color image.
Definition at line 15 of file ColorImageRGB8.h.
typedef byte puma2::ColorImageRGB8::B3[3] |
Definition at line 69 of file ColorImageRGB8.h.
ColorImageRGB8::ColorImageRGB8 | ( | int | x = 0 , |
int | y = 0 |
||
) |
Default constructor.
Definition at line 10 of file ColorImageRGB8.cpp.
ColorImageRGB8::ColorImageRGB8 | ( | int | x, |
int | y, | ||
ColorImageRGB8 * | m, | ||
int | xo, | ||
int | yo | ||
) |
Subimage constructor:
x,: | horizontal size |
y,: | 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 16 of file ColorImageRGB8.cpp.
void ColorImageRGB8::assign | ( | int | i, |
int | j, | ||
int | n, | ||
int | v | ||
) |
Set a single value
[in] | i | Line |
[in] | j | Row |
[in] | n | Channel |
[in] | v | Value |
Definition at line 22 of file ColorImageRGB8.cpp.
void ColorImageRGB8::assign | ( | int | x, |
int | y, | ||
int | r, | ||
int | g, | ||
int | b | ||
) |
Set all values
[in] | x | Row |
[in] | y | Line |
[in] | r | R-value |
[in] | g | G-value |
[in] | b | B-value |
Definition at line 27 of file ColorImageRGB8.cpp.
double puma2::ColorImageRGB8::getElementTypeMaximum | ( | ) | const [inline, virtual] |
see Image::getElementTypeMaximum()
Reimplemented from puma2::TBaseImg< MultiElementPixel< byte, N > >.
Definition at line 63 of file ColorImageRGB8.h.
double puma2::ColorImageRGB8::getElementTypeMinimum | ( | ) | const [inline, virtual] |
see Image::getElementTypeMinimum()
Reimplemented from puma2::TBaseImg< MultiElementPixel< byte, N > >.
Definition at line 60 of file ColorImageRGB8.h.
void ColorImageRGB8::operator= | ( | const ColorImageRGB8 & | o | ) |
Definition at line 34 of file ColorImageRGB8.cpp.
void ColorImageRGB8::readFromFile | ( | const char * | fileName | ) |
Reimplemented from puma2::TBaseImg< MultiElementPixel< byte, N > >.
Definition at line 39 of file ColorImageRGB8.cpp.
void ColorImageRGB8::reset | ( | ) | [protected] |
Definition at line 49 of file ColorImageRGB8.cpp.
void ColorImageRGB8::writeToFile | ( | const char * | fileName | ) | const |
Reimplemented from puma2::TBaseImg< MultiElementPixel< byte, N > >.
Definition at line 44 of file ColorImageRGB8.cpp.