Inherits NativeWrapper< Rx::CRxImage >, and Rx::InteropNet::Runtime28::IImage.
Inherited by Rx::Net::NativeWrapperManagedExtender< Rx::LFR::CRayImage, Rx::Net::Image >.
|
| Image () |
| Default constructor. More...
|
|
| Image (Rx::CRxImage &xNative) |
| Constructor. More...
|
|
| Image (Net::ImageFormat^ xFormat) |
| Creates a new image and allocates memory necessary for the given image format. More...
|
|
| Image (System::Int32 iWidth, System::Int32 iHeight, InteropNet::Runtime28::EPixelType ePixelType, InteropNet::Runtime28::EDataType eDataType) |
| Constructor. 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 (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 | Create (Net::ImageFormat^ xFormat) |
| Creates a new image and allocates memory necessary for the given image format. 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...
|
|
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 () |
|
Rx::Net::Image::Image |
( |
| ) |
|
Constructor.
Wraps the given native instance instead of creating an own instance. The given native instance must be valid for the lifetime of this instance.
- Parameters
-
xNative | [in] The native instance to be wrapped by this class. |
Creates a new image and allocates memory necessary for the given image format.
- Parameters
-
xFormat | [in] The image format. |
Constructor.
- Parameters
-
iWidth | The image width in pixels. |
iHeight | The image height in pixel. |
ePixelType | The pixel type. |
eDataType | The data type. |
Converts this image from a custom data type into the corresponding primitive data type.
The following conversion are implemented:
- EDataType::Custom_10in16_LSB into EDataType::UShort
- EDataType::Custom_12in16_LSB into EDataType::UShort.
- Parameters
-
xTrgImg | [out] The target image. This is created within the correct format. |
bool Rx::InteropNet::Runtime28::IImage::Create |
( |
int |
iWidth, |
|
|
int |
iHeight, |
|
|
EPixelType |
ePixelType, |
|
|
EDataType |
eDataType |
|
) |
| |
|
inherited |
Prepares memory.
- Parameters
-
iWidth | The width. |
iHeight | The height. |
ePixelType | Identifier for the image type. |
eDataType | Identifier for the data type. |
- Returns
- True if it succeeds, false if it fails.
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.
- Parameters
-
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the image. |
eDataType | Type of the data. |
- Returns
- True if it succeeds, false if it fails.
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.
- Parameters
-
xFormat | [in] The image format. |
- Returns
- True if it succeeds, false if it fails.
virtual bool Rx::Net::Image::Destroy |
( |
| ) |
|
|
virtual |
virtual System::Int32 Rx::Net::Image::GetByteCount |
( |
| ) |
|
|
inlinevirtual |
Get the number of bytes of the whole image.
virtual System::Int32 Rx::Net::Image::GetBytesPerPixel |
( |
| ) |
|
|
virtual |
virtual void* Rx::Net::Image::GetDataPtr |
( |
| ) |
|
|
virtual |
virtual System::Int32 Rx::Net::Image::GetPixelCount |
( |
| ) |
|
|
inlinevirtual |
Get the number of pixels.
virtual void Rx::Net::Image::GetSize |
( |
System::Int32^ % |
iWidth, |
|
|
System::Int32^ % |
iHeight |
|
) |
| |
|
inlinevirtual |
Get width and height of image.
Get pixel and data type of image.
Test whether image is of a particular pixel and data type.
bool Rx::Net::Image::Normalize |
( |
| ) |
|
|
inline |
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
.
void Rx::Net::Image::SetTimestampID |
( |
double |
dTimestamp, |
|
|
unsigned |
uID |
|
) |
| |
|
inline |
Sets the timestamp and the ID of the image.
- Parameters
-
dTimestamp | The timestamp. |
uID | The ID. |
void Rx::Net::Image::SetZero |
( |
| ) |
|
|
inline |
InteropNet:: Runtime28:: EDataType Rx::Net::Image::DataType |
|
get |
Gets the type of the data.
Gets the format of this image.
System:: Int32 Rx::Net::Image::Height |
|
get |
Gets the height of this image in pixels.
unsigned Rx::Net::Image::ID |
|
getset |
Gets or sets the ID of this image.
System:: Boolean Rx::Net::Image::IsValid |
|
get |
Flags whether this image is valid or not.
An image is valid if memory has been allocated.
InteropNet:: Runtime28:: EPixelType Rx::Net::Image::PixelType |
|
get |
Gets the type of the pixel.
double Rx::Net::Image::Timestamp |
|
getset |
Gets or sets the timestamp of the image capture. Is 0.0 if this image has no timestamp.
System:: Int32 Rx::Net::Image::Width |
|
get |
Gets the width of this image in pixels.