IImage#
- class Itala.ImageFactory#
Public Static Functions
- IImage Create (IntPtr data, Int64 width, Int64 height, PfncFormat pfncFormat)#
Creates a new image from a memory buffer by copying and taking ownership of the data. The size in bytes of the buffer is obtained from the width, height and format provided by the caller.For that reason, Y padding in the buffer is ignored while X padding is not supported.
- Param data:
Pointer to the image data.
- Param width:
Width of the image in pixel.
- Param height:
Height of the image in pixel.
- Param pfncFormat:
Pixel format of the image in pixel.
- Return:
Converted image instate.
- interface Itala.IImage : IDisposable, ICloneable#
Image interface. It represents the image buffer grabbed from the device. The instance must be disposed when it’s no longer required via IImage.Dispose.
Subclassed by Itala.ItalaImage
Public Functions
- GenApi.INode GetChunkNode (string name)#
Get the specified node from the internal chunk data nodemap.
- Param name:
Name of the node in the chunk data.
- Return:
Reference to the node INode.
- T GetChunkNode<T> (string name)
Get the specified node from the internal chunk data nodemap. Use generic with the correspoding value interface of the node you are trying to retrive.
Use case:
IInteger chunkFrameId = img.GetChunkNode<IInteger>("ChunkFrameID");
- Param name:
Name of the node in the chunk data.
- Return:
Reference to the node T.
- IImage Coverter (PfncFormat dest_format)#
Creates a new image converted from the current one with its own allocated memory and the specified pixel format.It needs to be disposed when it’s no longer required via Dispose().
- Param dest_format:
Format you want to objtain as result of conversion
- Return:
Reference to the converted image instance.
Properties
- Int64 Width { get; set; }#
Width of the image in pixels.
- Int64 Height { get; set; }#
Height of the image in pixels.
- Int64 OffsetX { get; set; }#
Offsex along the X axis of the image, in pixels.
- Int64 OffsetY { get; set; }#
Offsex along the Y axis of the image, in pixels.
- Int64 PaddingX { get; set; }#
Padding along the X axis of the image, in pixels.
- Int64 PaddingY { get; set; }#
Padding along the Y axis of the image, in pixels.
- PfncFormat PixelFormat { get; set; }#
Pixel format of the image. The PFNC standard from GenICam is used to identify the format.
- UInt64 FrameID { get; set; }#
ID of the image.
- UInt64 Timestamp { get; set; }#
Timestamp of the image.
- Int64 PayloadSize { get; set; }#
Payload size of the image, in bytes.
- bool IsIncomplete { get; set; }#
Reports wether the grabbed image is incomplete, i.e. some bytes are missing due to transfer issues.
- Int64 BytesFilled { get; set; }#
The amount of bytes actually stored in the buffer.
- IntPtr Data { get; set; }#
Get the pointer to the memory buffer containing the grabbed data. The content is retrieved directly from the device and, if chunk data functionality is enabled, the chunks are also included in the buffer.
- bool HasChunckData { get; set; }#
Report wether the buffer contains chunk data or not.