Basler Pioneer User Manual page 217

Gige vision cameras
Table of Contents

Advertisement

included in the pylon API. Once the chunk parser has been used, you can retrieve the extended
image data by doing the following:
Read the value of the Chunk Offset X parameter.
Read the value of the Chunk Offset Y parameter.
Read the value of the Chunk Width parameter.
Read the value of the Chunk Height parameter.
Read the value of the Chunk Pixel Format parameter.
Read the value of the Chunk Dynamic Range Min.
Read the value of the Chunk Dynamic Range Max.
The following code snippet illustrates using the pylon API to run the parser and retrieve the
extended image data:
// retrieve date from the extended image data chunk
IChunkParser &ChunkParser = *Camera.CreateChunkParser();
GrabResult Result;
StreamGrabber.RetrieveResult( Result );
ChunkParser.AttachBuffer( (unsigned char*) Result.Buffer(),
Result.GetPayloadSize() );
int64_t offsetX = Camera.ChunkOffsetX.GetValue();
int64_t offsetY = Camera.ChunkOffsetY.GetValue();
int64_t width = Camera.ChunkWidth.GetValue();
int64_t height = Camera.ChunkHeight.GetValue();
int64_t dynamicRangeMin = Camera.ChunkDynamicRangeMin.GetValue();
int64_t dynamicRangeMax = Camera.ChunkDynamicRangeMax.GetValue();
ChunkPixelFormatEnums pixelFormat = Camera.ChunkPixelFormat.GetValue();
For more information about using the chunk parser, see the sample code that is included with the
Basler pylon Software Development Kit (SDK).
Basler pioneer
Chunk Features
207

Advertisement

Table of Contents
loading

Table of Contents