#include <ncutImage.h>
Public Member Functions | |
ELEMENT_TYPE & | val (unsigned int elm) |
Get the value of the colour channel of the specified element. | |
ELEMENT_TYPE & | val (unsigned int pxl, unsigned int chl) |
Get the value of the colour channel of the specified pixel and channel. | |
const ELEMENT_TYPE & | val (unsigned int elm) const |
Get the constant value of the colour channel of the specified element. | |
const ELEMENT_TYPE & | val (unsigned int pxl, unsigned int chl) const |
Get the value of the colour channel of the specified pixel and channel. | |
unsigned int | width () const |
Get the with of the image. | |
unsigned int | height () const |
Get the height of the image. | |
unsigned int | nChl () const |
Get the number of channels of the image. | |
Image () | |
Image empty constructor. | |
Image (int width, int height, int nChl) | |
Image custom constructor. | |
Image (const Image &clone) | |
Image copy constructor. | |
virtual | ~Image () |
Image destructor. | |
virtual Image & | operator= (const Image &clone) |
Image assignment operator. | |
Protected Attributes | |
std::vector< ELEMENT_TYPE > | imageData_ |
unsigned int | width_ |
unsigned int | height_ |
unsigned int | nChl_ |
Image
is the base class for PNGImage
and BSIImage
. Image
is a small wrapper around a STL vector containing the raw image values, providing additional information, such as width and height, and more convenient image element access functions.
|
Image empty constructor. Creates an empty image with width=height=channels=0. |
|
Image custom constructor.
|
|
Image copy constructor.
|
|
Get the height of the image.
|
|
Get the number of channels of the image.
|
|
Image assignment operator.
|
|
Get the value of the colour channel of the specified pixel and channel.
|
|
Get the constant value of the colour channel of the specified element.
|
|
Get the value of the colour channel of the specified pixel and channel.
|
|
Get the value of the colour channel of the specified element.
|
|
Get the with of the image.
|
|
The height of this image. |
|
The raw image values stored sequentially in the form pxl0chl0, pxl0chl1, ... , pxl1chl0, ... |
|
The number of channels of this image. |
|
The width of this image. |