Namespace: Rx.Net – Class: Image – Assembly: Rx.Net.Mixed

Image Class

C#
class Image : NativeWrapper<Rx.CRxImage>

Image class.

Constructors

Image()

Default constructor.

Image(xNative)

Constructor.

Image(xNative, bTransferOwnership)

Constructor.

Image(xFormat)

Creates a new image and allocates memory necessary for the given image format.

Image(iWidth, iHeight, ePixelType, eDataType)

Constructor.

Properties

IsValid

Flags whether this image is valid or not.

Width

Gets the width of this image in pixels.

Height

Gets the height of this image in pixels.

PixelType

Gets the type of the pixel.

DataType

Gets the type of the data.

Format

Gets the format of this image.

ID

Gets or sets the ID of this image.

Timestamp

Gets or sets the timestamp of the image capture. Is 0.0 if this image has no timestamp.

IsDisposed

True if this object is disposed.

(Inherited from NativeWrapper)
SyncRoot

A SyncRoot object that can be used to lock this object externally.

(Inherited from NativeWrapper)

Methods

Create(iWidth, iHeight, ePixelType, eDataType)

Creates a new image and allocates memory necessary for given parameters.

Create(xFormat)

Creates a new image and allocates memory necessary for the given image format.

Create(xCopiedImage)

Creates a new image which is a copy of the provided source image.

Clone()

Makes a deep copy of this object.

Destroy()

Destroys this image and frees all memory used.

GetBytesPerPixel()

Gets the bytes per pixel.

IsOfType(ePixelType, eDataType)

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

Normalize()

Find minimal and maximal value of image and normalize image to range [0,1].

SetZero()
GetDataPtr()

Gets the data pointer.

ConvertType(ePixelType, eDataType)
ConvertCustomType(xTrgImg)

Converts this image from a custom data type into the corresponding primitive data type.

SetTimestampID(dTimestamp, uID)

Sets the timestamp and the ID of the image.

GetPixelNormalized(iX, iY, dR, dG, dB, dA)
GetNative()

Gets the native instance.

(Inherited from NativeWrapper)