Image class. Implements the interface Interop::Runtime28::IImage.
This class implements only the basic functionality for an image like create, delete and convert. All image processing has to be implemented separately.
The format of an image is described by the class Rx::CRxImageFormat. It consits of an image width, height, a pixel type and a data type. The pixel type defines the number and order of color channels, and the data type specifies the data type of each color channel. For example, the pixel type can be RGBA or BGRA and the data type may be unsigned byte (8bit) or unsigned short (16bit). The various pixel types available are defined in Interop::Runtime28::EPixelType and the data types in Interop::Runtime28::EDataType. Note that the values of the data type and pixel type defines are identical to the corresponding OpenGL IDs.
All possible pixel and data types are represented by the TPixel\ endlink template structure. Specializations of this template structure cover all possible combinations of the defined pixel types and data types. The specialization names have the form TPixel_[PixelType]_[Data Type]
. For example, the pixel structure for an RGBA unsigned char image is
The main advantage of using the TPixel_* typedefs to access the pixels of an image is, that you can write template functions that work on many different pixel types. The TPixel structure defines functions to access the various color channels that map to the correct element within a pixel.
The pointer to the image data can be obtained with the function GetDataPtr().
Inherits Rx::Interop::Runtime28::IImage.
Public Member Functions | |
CRxImage () | |
Initializes a new instance of the CRxImage class. This default constructor nether alloc any memory nor set any image format. More... | |
CRxImage (const CRxImage &xImage) | |
Initializes a new instance of the CRxImage class. This image is a copy of given reference CRxImage with its own memory. More... | |
CRxImage (const Rx::CRxImageFormat &xFormat) | |
Initializes a new instance of the CRxImage class. This image is created with given image format and necessary memory is allocated. More... | |
virtual | ~CRxImage (void) |
Finalizes an instance of the CRxImage class. All used memory is freed. More... | |
bool | ConvertType (CRxImage &xImage, Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType) const |
Convert this image to a different type and store result in xImage. More... | |
virtual bool | Create (int iWidth, int iHeight, Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType) |
Create an image of given type and size and reserve the appropriate amount of memory. More... | |
virtual bool | Create (int iWidth, int iHeight, Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType, const void *pData) |
Create an image of given type and size and copy the data from the given pointer. More... | |
virtual bool | Create (const Interop::Runtime28::IImage *pImage) |
Create an image as copy of the given image. More... | |
bool | Create (const Rx::CRxImageFormat &xFormat) |
Create an image of given type and size and reserve the appropriate amount of memory. More... | |
bool | Create (const CRxImage &xImage) |
Creates an image which is a copy of given image xImage . More... | |
virtual bool | Destroy () |
Destroy image. More... | |
virtual unsigned | GetByteCount () const |
Get the number of bytes of the whole image. More... | |
virtual int | GetBytesPerPixel () const |
Get number of bytes per pixel. More... | |
virtual void * | GetDataPtr () |
Return the pointer to the data array. More... | |
virtual const void * | GetDataPtr () const |
Return the constant pointer to the data array. More... | |
virtual const Rx::CRxImageFormat & | GetFormat () const |
Get the image format. More... | |
void | GetPixel (TPixel_RGBA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_d &xPix, int iX, int iY) const |
virtual unsigned | GetPixelCount () const |
Get the number of pixels. More... | |
virtual void | GetSize (int &iWidth, int &iHeight) const |
Get width and height of image. More... | |
virtual void | GetType (Rx::Interop::Runtime28::EPixelType::ID &ePixelType, Rx::Interop::Runtime28::EDataType::ID &eDataType) const |
Get pixel and data type of image. More... | |
bool | IsOfType (Rx::Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType) const |
Test whether image is of a particular pixel and data type. More... | |
virtual bool | IsValid () const |
Test whether this image exists. More... | |
bool | Normalize () |
Find minimal and maximal value of image and normalize image to range [0,1]. More... | |
CRxImage & | operator= (const CRxImage &xImage) |
Copy the contents of an image. More... | |
bool | Set (const CRxImage &xImage) |
Set this image with the contents of the given image. More... | |
bool | Set (const void *pvData) |
Set this image with the contents of the given pointer. More... | |
void | SetPixel (const TPixel_RGBA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_d &xPix, int iX, int iY) |
void | SetZero () |
Static Public Member Functions | |
static bool | ConvertMemory (void *pTrgMem, const void *pSrcMem, const CRxImageFormat &xTrgFormat, const CRxImageFormat &xSrcFormat) |
Convert the pSrcMem memory to a different type and store result in memory pTrgMem. More... | |
static bool | ConvertType (Interop::Runtime28::IImage *pDstImg, const Interop::Runtime28::IImage *pSrcImg, Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType, bool bCreate) |
Convert the pSrcImage to a different type and store result in pDstImage. More... | |
Protected Member Functions | |
template<class TPix > | |
TPix & | _GetPixel (int iX, int iY) |
template<class TPix > | |
const TPix & | _GetPixel (int iX, int iY) const |
Static Protected Member Functions | |
template<class TTrgPix , class TSrcPix > | |
static bool | _Convert (unsigned uPixelCount, TTrgPix *pTrgPix, const TSrcPix *pSrcPix) |
template<class TPix > | |
static bool | _ConvertSrcSwitch (const void *pSrcMem, const CRxImageFormat &xSrcFormat, TPix *pTrgPix) |
static bool | _ConvertTrgSwitch (void *pDstMem, const void *pSrcMem, const CRxImageFormat &xDstFormat, const CRxImageFormat &xSrcFormat) |
Protected Attributes | |
void * | m_pvData |
CRxImageFormat | m_xFormat |
Rx::CRxImage::CRxImage | ( | ) |
Initializes a new instance of the CRxImage class. This default constructor nether alloc any memory nor set any image format.
Rx::CRxImage::CRxImage | ( | const CRxImage & | xImage | ) |
Rx::CRxImage::CRxImage | ( | const Rx::CRxImageFormat & | xFormat | ) |
Initializes a new instance of the CRxImage class. This image is created with given image format and necessary memory is allocated.
xFormat | The reference CRxImageFormat. |
|
virtual |
Finalizes an instance of the CRxImage class. All used memory is freed.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
static |
Convert the pSrcMem memory to a different type and store result in memory pTrgMem.
pTrgMem | [in] Target memory (must have correct target size). |
pSrcMem | Source memory. |
xTrgFormat | The target image format. |
xSrcFormat | The source image format. |
bool Rx::CRxImage::ConvertType | ( | CRxImage & | xImage, |
Interop::Runtime28::EPixelType::ID | ePixelType, | ||
Rx::Interop::Runtime28::EDataType::ID | eDataType | ||
) | const |
Convert this image to a different type and store result in xImage.
xImage | [in,out] The image instance into which to write the result. The size of this image is adapted to this size. |
ePixelType | The target pixel type. |
eDataType | The target data type. |
|
static |
Convert the pSrcImage to a different type and store result in pDstImage.
pDstImg | [in,out] Pointer to target image interface. |
pSrcImg | Pointer to source image interface. |
ePixelType | The target pixel type. |
eDataType | The targer data type. |
bCreate | If true, the memory for the target image is created. |
|
virtual |
Create an image of given type and size and reserve the appropriate amount of memory.
Implements Rx::Interop::Runtime28::IImage.
|
virtual |
Create an image of given type and size and copy the data from the given pointer.
Implements Rx::Interop::Runtime28::IImage.
|
virtual |
Create an image as copy of the given image.
Implements Rx::Interop::Runtime28::IImage.
bool Rx::CRxImage::Create | ( | const Rx::CRxImageFormat & | xFormat | ) |
Create an image of given type and size and reserve the appropriate amount of memory.
bool Rx::CRxImage::Create | ( | const CRxImage & | xImage | ) |
Creates an image which is a copy of given image xImage .
xImage | The reference image. |
|
virtual |
Destroy image.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Get the number of bytes of the whole image.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Get number of bytes per pixel.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Return the pointer to the data array.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Return the constant pointer to the data array.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Get the image format.
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGB_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGRA_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_BGR_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_L_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_LA_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_RG_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GR_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_uc & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_s & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_i & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_ui & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_f & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_d & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
|
inlinevirtual |
Get the number of pixels.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Get width and height of image.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Get pixel and data type of image.
Implements Rx::Interop::Runtime28::IImage.
|
inline |
Test whether image is of a particular pixel and data type.
|
inlinevirtual |
Test whether this image exists.
Implements Rx::Interop::Runtime28::IImage.
bool Rx::CRxImage::Normalize | ( | ) |
Find minimal and maximal value of image and normalize image to range [0,1].
TPixel_L_f
. bool Rx::CRxImage::Set | ( | const CRxImage & | xImage | ) |
Set this image with the contents of the given image.
Expects that image formats are identical.
bool Rx::CRxImage::Set | ( | const void * | pvData | ) |
Set this image with the contents of the given pointer.
Expects that image formats are identical.
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGB_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGRA_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_BGR_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_L_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_LA_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_RG_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GR_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_uc & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_s & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_i & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_ui & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_f & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_d & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetZero | ( | ) |
|
protected |
|
protected |