Raytrix Light Field SDK
5.0
|
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 CRxImageFormat. It consist 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 Rx::Interop::Runtime28::EPixelType::ID and the data types in Rx::Interop::Runtime28::EDataType::ID. 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 TPixeltemplate 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 TPixel_RGBA_uc.
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.
Inherited by Rx::LFR::CRayImage.
Public Member Functions | |
CRxImage () | |
Default constructor. Creates an invalid image without using any memory. More... | |
CRxImage (const CRxImage &xImage) | |
Copy constructor. Creates a copy of the given image More... | |
CRxImage (const CRxImageFormat &xFormat) | |
Constructor. Creates a valid image within the given format and allocates memory accordingly. More... | |
CRxImage (CRxImage &&xImage) | |
Move constructor. More... | |
virtual | ~CRxImage () |
Destructor. All used memory is freed. More... | |
void | ConvertCustomType (CRxImage &xTrgImg) const |
Converts this image from a custom data type into the corresponding primitive data type. More... | |
bool | ConvertType (CRxImage &xImage, Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType) const |
Convert this image to a different type and store result in xImage. More... | |
void | Create (const CRxImage &xImage) |
Creates a copy of the given image. Only (re)allocates memory if required. More... | |
void | Create (const CRxImageFormat &xFormat) |
Creates an image of the given format. Only (re)allocates memory if required. More... | |
void | Create (const CRxImageFormat &xFormat, const void *pvImgData) |
Creates an image of the given format. Only (re)allocates memory if required. Copies the image data into this image. More... | |
void | Create (CRxImage &&xImage) |
Creates this image by moving the data of the given image into this image. More... | |
virtual bool | Create (int iWidth, int iHeight, Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType) |
Create an image of given type and size and reserve the appropriate amount of memory. No re-allocation is applied if this is of requested format. More... | |
virtual bool | Create (int iWidth, int iHeight, Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType, const void *pData) |
Create an image of given type and size and copy the data from the given pointer. No re-allocation is applied if this is of requested format. More... | |
void | CreateMoniker (const CRxImageFormat &xFormat, void *pvImgData, double dTimestamp=0.0, unsigned uID=0) |
Creates an image of the given format. This copies only the image data pointer. Does not allocate memory. More... | |
virtual bool | Destroy () |
Destroys this image if one has been created. Resets all internal variables. More... | |
virtual unsigned | GetByteCount () const |
Gets 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... | |
const CRxImageFormat & | GetFormat () const |
Gets the image format. More... | |
unsigned | GetID () const |
Gets the ID of this image. Is used to represent images captured by a camera or read from a sequence. More... | |
void | GetPixel (TPixel_Bay_BG_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_BG_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GB_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_GR_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_Bay_RG_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGR_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_BGRA_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_L_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_LA_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGB_us &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_c &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_d &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_f &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_i &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_s &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_uc &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_ui &xPix, int iX, int iY) const |
void | GetPixel (TPixel_RGBA_us &xPix, int iX, int iY) const |
virtual unsigned | GetPixelCount () const |
Gets the number of pixels. More... | |
virtual void | GetSize (int &iWidth, int &iHeight) const |
Gets the size of the image. More... | |
double | GetTimestamp () const |
Gets the timestamp of the image capture. Is 0.0 if this image has no timestamp. More... | |
virtual void | GetType (Interop::Runtime28::EPixelType::ID &ePixelType, Interop::Runtime28::EDataType::ID &eDataType) const |
Gets the type of the image. More... | |
bool | IsMoniker () const |
Query if this image is a moniker. More... | |
bool | IsOfType (Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType) const |
Test whether image is of a particular pixel and data type. More... | |
virtual bool | IsValid () const |
Query if this image is valid. More... | |
bool | Normalize () |
Find minimal and maximal value of image and normalize image to range [0,1]. More... | |
CRxImage & | operator= (const CRxImage &xImage) |
Assignment operator. Copies the contents of the given image. More... | |
CRxImage & | operator= (CRxImage &&xImage) |
Move assignment operator. More... | |
bool | Set (const void *pvImgData) |
Copies the content of the given image data into this image. More... | |
void | SetID (unsigned uID) |
Sets the ID of this image. Is used to represent images captured by a camera or read from a sequence. More... | |
void | SetPixel (const TPixel_Bay_BG_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_BG_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GB_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_GR_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_Bay_RG_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGR_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_BGRA_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_L_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_LA_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGB_us &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_c &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_d &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_f &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_i &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_s &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_uc &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_ui &xPix, int iX, int iY) |
void | SetPixel (const TPixel_RGBA_us &xPix, int iX, int iY) |
void | SetROIDefinition (const CRxImageFormat::TInt4 &piROIDefinition) |
Sets the ROI definition. More... | |
void | SetTimestamp (double dTimestamp) |
Sets the timestamp of the image capture. More... | |
void | SetTimestampID (double dTimestamp, unsigned uID) |
Sets the timestamp and the ID of the image. More... | |
void | SetZero () |
Sets the image data to contain only zeros. More... | |
void | Swap (CRxImage &xImage) |
Swaps the data between this and the given image. More... | |
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 (CRxImage &xDstImg, const CRxImage &xSrcImg, Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType) |
Convert the pSrcImage to a different type and store result in pDstImage. More... | |
Protected Member Functions | |
CRxImage (const CRxImageFormat &xFormat, IAllocator *pxAllocator) | |
Constructor. Creates a valid image within the given format and allocator and allocates memory accordingly. More... | |
CRxImage (IAllocator *pxAllocator) | |
Constructor. More... | |
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 | |
bool | m_bIsMoniker |
True if this image is only a moniker for an image data pointer. The memory is not freed in the destructor. More... | |
double | m_dTimestamp |
The timestamp of the image capture. Is 0.0 if this image has no timestamp. More... | |
void * | m_pvData |
The actual image data. More... | |
IAllocator * | m_pxAllocator |
The allocator. More... | |
unsigned | m_uID |
The image ID. Is used to represent images captured by a camera or read from a sequence. More... | |
CRxImageFormat | m_xFormat |
The format of this image. More... | |
Rx::CRxImage::CRxImage | ( | ) |
Default constructor. Creates an invalid image without using any memory.
Rx::CRxImage::CRxImage | ( | const CRxImage & | xImage | ) |
Copy constructor. Creates a copy of the given image
xImage | The image to copy. |
Rx::CRxImage::CRxImage | ( | CRxImage && | xImage | ) |
Move constructor.
xImage | [in] The image to move. This is invalid after the call. |
Rx::CRxImage::CRxImage | ( | const CRxImageFormat & | xFormat | ) |
Constructor. Creates a valid image within the given format and allocates memory accordingly.
xFormat | The image format. |
|
virtual |
Destructor. All used memory is freed.
|
explicitprotected |
Constructor.
pxAllocator | [in,out] The allocator for this image. The image will borrow the ownership of the allocator. |
|
explicitprotected |
Constructor. Creates a valid image within the given format and allocator and allocates memory accordingly.
xFormat | The image format. |
pxAllocator | [in,out] The allocator for this image. The image will borrow the ownership of the allocator. |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
void Rx::CRxImage::ConvertCustomType | ( | CRxImage & | xTrgImg | ) | const |
Converts this image from a custom data type into the corresponding primitive data type.
The following conversion are implemented:
xTrgImg | [out] The target image. This is created within the correct format. |
|
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. |
|
static |
Convert the pSrcImage to a different type and store result in pDstImage.
xDstImg | [in,out] The target image. |
xSrcImg | The source image. |
ePixelType | The target pixel type. |
eDataType | The targer data type. |
bool Rx::CRxImage::ConvertType | ( | CRxImage & | xImage, |
Interop::Runtime28::EPixelType::ID | ePixelType, | ||
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. |
void Rx::CRxImage::Create | ( | const CRxImage & | xImage | ) |
Creates a copy of the given image. Only (re)allocates memory if required.
xImage | The image to copy. |
void Rx::CRxImage::Create | ( | const CRxImageFormat & | xFormat | ) |
Creates an image of the given format. Only (re)allocates memory if required.
xFormat | The image format. |
void Rx::CRxImage::Create | ( | const CRxImageFormat & | xFormat, |
const void * | pvImgData | ||
) |
Creates an image of the given format. Only (re)allocates memory if required. Copies the image data into this image.
xFormat | The image format. |
pvImgData | Pointer to the image data. |
void Rx::CRxImage::Create | ( | CRxImage && | xImage | ) |
Creates this image by moving the data of the given image into this image.
xImage | [in,out] The image to move. Is invalid after this call. |
|
virtual |
Create an image of given type and size and reserve the appropriate amount of memory. No re-allocation is applied if this is of requested format.
iWidth | The width of image. |
iHeight | The height of the image. |
ePixelType | The pixel type. |
eDataType | The data type. |
Implements Rx::Interop::Runtime28::IImage.
|
virtual |
Create an image of given type and size and copy the data from the given pointer. No re-allocation is applied if this is of requested format.
iWidth | Width of image. |
iHeight | Height. |
ePixelType | Type of the pixel. |
eDataType | Type of the data. |
pData | The data. |
Implements Rx::Interop::Runtime28::IImage.
void Rx::CRxImage::CreateMoniker | ( | const CRxImageFormat & | xFormat, |
void * | pvImgData, | ||
double | dTimestamp = 0.0 , |
||
unsigned | uID = 0 |
||
) |
Creates an image of the given format. This copies only the image data pointer. Does not allocate memory.
An images created with this method does never free the memory behind the pointer. The pointer responsibility stays with the caller.
xFormat | The image format. |
pvImgData | The image data pointer. |
dTimestamp | (Optional) The timestamp of the image capture. |
uID | (Optional) The image ID. |
|
virtual |
Destroys this image if one has been created. Resets all internal variables.
Implements Rx::Interop::Runtime28::IImage.
|
inlinevirtual |
Gets 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.
|
inline |
Gets the image format.
|
inline |
Gets the ID of this image. Is used to represent images captured by a camera or read from a sequence.
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_BG_c & | 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_BG_f & | 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_s & | 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_ui & | 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_GB_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_Bay_GB_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_c & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
void Rx::CRxImage::GetPixel | ( | TPixel_RGBA_d & | 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_i & | 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_uc & | 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_us & | xPix, |
int | iX, | ||
int | iY | ||
) | const |
|
inlinevirtual |
|
inlinevirtual |
Gets the size of the image.
iWidth | [out] The width. |
iHeight | [out] The height. |
Implements Rx::Interop::Runtime28::IImage.
|
inline |
Gets the timestamp of the image capture. Is 0.0 if this image has no timestamp.
|
inlinevirtual |
Gets the type of the image.
ePixelType | [out] The pixel type. |
eDataType | [out] The data type. |
Implements Rx::Interop::Runtime28::IImage.
|
inline |
Query if this image is a moniker.
A moniker holds an image data pointer but is not responsible for the memory. Thus, destroying an image moniker does not free the memory.
|
inline |
Test whether image is of a particular pixel and data type.
ePixelType | The pixel type. |
eDataType | The data type. |
|
inlinevirtual |
Query if this image is valid.
Implements Rx::Interop::Runtime28::IImage.
bool Rx::CRxImage::Normalize | ( | ) |
Find minimal and maximal value of image and normalize image to range [0,1].
Is currently only implemented for pixel type TPixel_L_f.
Assignment operator. Copies the contents of the given image.
xImage | The image. |
Move assignment operator.
xImage | [in] The image to move. This is invalid after the call. |
bool Rx::CRxImage::Set | ( | const void * | pvImgData | ) |
Copies the content of the given image data into this image.
Expects that the image formats of the given data pointer and this image are identical.
pvImgData | The image data to copy. |
|
inline |
Sets the ID of this image. Is used to represent images captured by a camera or read from a sequence.
uID | The ID. |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_BG_c & | 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_BG_f & | 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_s & | 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_ui & | 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_GB_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_Bay_GB_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | 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_d & | 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_i & | 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_uc & | 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_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_c & | xPix, |
int | iX, | ||
int | iY | ||
) |
void Rx::CRxImage::SetPixel | ( | const TPixel_RGBA_d & | 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_i & | 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_uc & | 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_us & | xPix, |
int | iX, | ||
int | iY | ||
) |
|
inline |
Sets the ROI definition.
piROIDefinition | The ROI definition. |
|
inline |
Sets the timestamp of the image capture.
dTimestamp | The timestamp. |
|
inline |
Sets the timestamp and the ID of the image.
dTimestamp | The timestamp. |
uID | The ID. Is used to represent images captured by a camera or read from a sequence. |
void Rx::CRxImage::SetZero | ( | ) |
Sets the image data to contain only zeros.
void Rx::CRxImage::Swap | ( | CRxImage & | xImage | ) |
Swaps the data between this and the given image.
xImage | [in,out] The image to swap with. |
|
protected |
True if this image is only a moniker for an image data pointer. The memory is not freed in the destructor.
|
protected |
The timestamp of the image capture. Is 0.0 if this image has no timestamp.
|
protected |
The actual image data.
|
protected |
The allocator.
|
protected |
The image ID. Is used to represent images captured by a camera or read from a sequence.
|
protected |
The format of this image.