Raytrix Light Field SDK  v3.0
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::CRxImage Class Reference

Detailed Description

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().

See also
Interop::Runtime28::IImage

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::CRxImageFormatGetFormat () 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...
 
CRxImageoperator= (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
 

Constructor & Destructor Documentation

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)

Initializes a new instance of the CRxImage class. This image is a copy of given reference CRxImage with its own memory.

Parameters
xImageThis reference CRxImage.
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.

Parameters
xFormatThe reference CRxImageFormat.
virtual Rx::CRxImage::~CRxImage ( void  )
virtual

Finalizes an instance of the CRxImage class. All used memory is freed.

Member Function Documentation

template<class TTrgPix , class TSrcPix >
static bool Rx::CRxImage::_Convert ( unsigned  uPixelCount,
TTrgPix *  pTrgPix,
const TSrcPix *  pSrcPix 
)
staticprotected
template<class TPix >
static bool Rx::CRxImage::_ConvertSrcSwitch ( const void *  pSrcMem,
const CRxImageFormat xSrcFormat,
TPix *  pTrgPix 
)
staticprotected
static bool Rx::CRxImage::_ConvertTrgSwitch ( void *  pDstMem,
const void *  pSrcMem,
const CRxImageFormat xDstFormat,
const CRxImageFormat xSrcFormat 
)
staticprotected
template<class TPix >
TPix& Rx::CRxImage::_GetPixel ( int  iX,
int  iY 
)
protected
template<class TPix >
const TPix& Rx::CRxImage::_GetPixel ( int  iX,
int  iY 
) const
protected
static bool Rx::CRxImage::ConvertMemory ( void *  pTrgMem,
const void *  pSrcMem,
const CRxImageFormat xTrgFormat,
const CRxImageFormat xSrcFormat 
)
static

Convert the pSrcMem memory to a different type and store result in memory pTrgMem.

Parameters
pTrgMem[in] Target memory (must have correct target size).
pSrcMemSource memory.
xTrgFormatThe target image format.
xSrcFormatThe source image format.
Returns
True if it succeeds, false if it fails.
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.

Parameters
xImage[in,out] The image instance into which to write the result. The size of this image is adapted to this size.
ePixelTypeThe target pixel type.
eDataTypeThe target data type.
Returns
false if an error occurred, otherwise true.
static bool Rx::CRxImage::ConvertType ( Interop::Runtime28::IImage pDstImg,
const Interop::Runtime28::IImage pSrcImg,
Interop::Runtime28::EPixelType::ID  ePixelType,
Rx::Interop::Runtime28::EDataType::ID  eDataType,
bool  bCreate 
)
static

Convert the pSrcImage to a different type and store result in pDstImage.

Parameters
pDstImg[in,out] Pointer to target image interface.
pSrcImgPointer to source image interface.
ePixelTypeThe target pixel type.
eDataTypeThe targer data type.
bCreateIf true, the memory for the target image is created.
Returns
false if an error occurred, otherwise true.
virtual bool Rx::CRxImage::Create ( int  iWidth,
int  iHeight,
Interop::Runtime28::EPixelType::ID  ePixelType,
Rx::Interop::Runtime28::EDataType::ID  eDataType 
)
virtual

Create an image of given type and size and reserve the appropriate amount of memory.

Implements Rx::Interop::Runtime28::IImage.

virtual bool Rx::CRxImage::Create ( int  iWidth,
int  iHeight,
Interop::Runtime28::EPixelType::ID  ePixelType,
Rx::Interop::Runtime28::EDataType::ID  eDataType,
const void *  pData 
)
virtual

Create an image of given type and size and copy the data from the given pointer.

Implements Rx::Interop::Runtime28::IImage.

virtual bool Rx::CRxImage::Create ( const Interop::Runtime28::IImage pImage)
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 .

Parameters
xImageThe reference image.
Returns
True if it succeeds, false if it fails.
virtual bool Rx::CRxImage::Destroy ( )
virtual

Destroy image.

Implements Rx::Interop::Runtime28::IImage.

virtual unsigned Rx::CRxImage::GetByteCount ( ) const
inlinevirtual

Get the number of bytes of the whole image.

Implements Rx::Interop::Runtime28::IImage.

virtual int Rx::CRxImage::GetBytesPerPixel ( ) const
inlinevirtual

Get number of bytes per pixel.

Implements Rx::Interop::Runtime28::IImage.

virtual void* Rx::CRxImage::GetDataPtr ( )
inlinevirtual

Return the pointer to the data array.

Implements Rx::Interop::Runtime28::IImage.

virtual const void* Rx::CRxImage::GetDataPtr ( ) const
inlinevirtual

Return the constant pointer to the data array.

Implements Rx::Interop::Runtime28::IImage.

virtual const Rx::CRxImageFormat& Rx::CRxImage::GetFormat ( ) const
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
virtual unsigned Rx::CRxImage::GetPixelCount ( ) const
inlinevirtual

Get the number of pixels.

Implements Rx::Interop::Runtime28::IImage.

virtual void Rx::CRxImage::GetSize ( int &  iWidth,
int &  iHeight 
) const
inlinevirtual

Get width and height of image.

Implements Rx::Interop::Runtime28::IImage.

virtual void Rx::CRxImage::GetType ( Rx::Interop::Runtime28::EPixelType::ID ePixelType,
Rx::Interop::Runtime28::EDataType::ID eDataType 
) const
inlinevirtual

Get pixel and data type of image.

Implements Rx::Interop::Runtime28::IImage.

bool Rx::CRxImage::IsOfType ( Rx::Interop::Runtime28::EPixelType::ID  ePixelType,
Rx::Interop::Runtime28::EDataType::ID  eDataType 
) const
inline

Test whether image is of a particular pixel and data type.

virtual bool Rx::CRxImage::IsValid ( ) const
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].

Attention
Is currently only implemented for pixel type TPixel_L_f.
CRxImage& Rx::CRxImage::operator= ( const CRxImage xImage)

Copy the contents of an image.

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 ( )

Member Data Documentation

void* Rx::CRxImage::m_pvData
protected
CRxImageFormat Rx::CRxImage::m_xFormat
protected