Raytrix Light Field SDK
5.0
|
An image implementation which is optimized to be used to transfer images from the host to a Cuda device.
As the image consumes page-locked memory, it should only be used for performance-critical tasks.
Inherits Rx::Net::Image.
Public Member Functions | |
CudaHostImage () | |
Default constructor. More... | |
virtual Image ^ | Clone () |
Makes a deep copy of this object. More... | |
void | ConvertCustomType (Rx::Net::Image^ xTrgImg) |
Converts this image from a custom data type into the corresponding primitive data type. More... | |
Image ^ | ConvertType (InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) |
bool | Create (int iWidth, int iHeight, EPixelType ePixelType, EDataType eDataType) |
Prepares memory. More... | |
virtual bool | Create (Net::ImageFormat^ xFormat) |
Creates a new image and allocates memory necessary for the given image format. More... | |
virtual void | Create (Rx::Net::Image^ xCopiedImage) |
Creates a new image which is a copy of the provided source image. More... | |
virtual bool | Create (System::Int32 iWidth, System::Int32 iHeight, InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) |
Creates a new image and allocates memory necessary for given parameters. More... | |
virtual bool | Destroy () |
Destroys this image and frees all memory used. More... | |
virtual System::Int32 | GetByteCount () |
Get the number of bytes of the whole image. More... | |
virtual System::Int32 | GetBytesPerPixel () |
Gets the bytes per pixel. More... | |
virtual void * | GetDataPtr () |
Gets the data pointer. More... | |
virtual System::Int32 | GetPixelCount () |
Get the number of pixels. More... | |
bool | GetPixelNormalized (int iX, int iY, double &dR, double &dG, double &dB, double &dA) |
virtual void | GetSize (System::Int32^ % iWidth, System::Int32^ % iHeight) |
Get width and height of image. More... | |
virtual void | GetType (InteropNet::Runtime28::EPixelType % ePixelType, InteropNet::Runtime28::EDataType % eDataType) |
Get pixel and data type of image. More... | |
bool | IsOfType (InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) |
Test whether image is of a particular pixel and data type. More... | |
bool | Normalize () |
Find minimal and maximal value of image and normalize image to range [0,1]. More... | |
void | SetTimestampID (double dTimestamp, unsigned uID) |
Sets the timestamp and the ID of the image. More... | |
void | SetZero () |
Properties | |
InteropNet::Runtime28::EDataType | DataType [get] |
Gets the type of the data. More... | |
Net::ImageFormat^ | Format [get] |
Gets the format of this image. More... | |
System::Int32 | Height [get] |
Gets the height of this image in pixels. More... | |
unsigned | ID [get, set] |
Gets or sets the ID of this image. More... | |
System::Boolean | IsValid [get] |
Flags whether this image is valid or not. More... | |
InteropNet::Runtime28::EPixelType | PixelType [get] |
Gets the type of the pixel. More... | |
double | Timestamp [get, set] |
Gets or sets the timestamp of the image capture. Is 0.0 if this image has no timestamp. More... | |
System::Int32 | Width [get] |
Gets the width of this image in pixels. More... | |
|
inline |
Default constructor.
|
virtualinherited |
Makes a deep copy of this object.
|
inlineinherited |
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. |
|
inherited |
|
inherited |
Prepares memory.
iWidth | The width. |
iHeight | The height. |
ePixelType | Identifier for the image type. |
eDataType | Identifier for the data type. |
|
virtualinherited |
Creates a new image and allocates memory necessary for the given image format.
If an image has been created before, the old image and all used memory is freed before creating the new image.
xFormat | [in] The image format. |
|
virtualinherited |
Creates a new image which is a copy of the provided source image.
This function only allocates memory if this operation changes the layout of the stored image.
xCopiedImage | [in] The image which should be copied. |
|
virtualinherited |
Creates a new image and allocates memory necessary for given parameters.
If an image has been created before, the old image and all used memory is freed before creating the new image.
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the image. |
eDataType | Type of the data. |
|
virtualinherited |
Destroys this image and frees all memory used.
Implements Rx::InteropNet::Runtime28::IImage.
|
inlinevirtualinherited |
Get the number of bytes of the whole image.
|
virtualinherited |
|
virtualinherited |
Gets the data pointer.
Implements Rx::InteropNet::Runtime28::IImage.
|
inlinevirtualinherited |
Get the number of pixels.
|
inlineinherited |
|
inlinevirtualinherited |
Get width and height of image.
|
inlinevirtualinherited |
Get pixel and data type of image.
|
inlineinherited |
Test whether image is of a particular pixel and data type.
|
inlineinherited |
Find minimal and maximal value of image and normalize image to range [0,1].
TPixel_L_f
.
|
inlineinherited |
Sets the timestamp and the ID of the image.
dTimestamp | The timestamp. |
uID | The ID. |
|
inlineinherited |
|
getinherited |
Gets the type of the data.
|
getinherited |
Gets the format of this image.
|
getinherited |
Gets the height of this image in pixels.
|
getsetinherited |
Gets or sets the ID of this image.
|
getinherited |
Flags whether this image is valid or not.
An image is valid if memory has been allocated.
|
getinherited |
Gets the type of the pixel.
|
getsetinherited |
Gets or sets the timestamp of the image capture. Is 0.0 if this image has no timestamp.
|
getinherited |
Gets the width of this image in pixels.