EasyManuals Logo

Basler GigE CAMERAS User Manual

Basler GigE CAMERAS
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
AW00097603000 Chunk Features
Basler aviator GigE 265
To retrieve data from the extended image data chunk appended to an image that has been received
by your PC, you must first run the image and its appended chunks through the chunk parser
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.
Read the value of the Chunk Stride parameter.
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();
int64_t stride = Camera.ChunkStride.GetValue();
For more information about using the chunk parser, see the sample code that is included with the
Basler pylon Software Development Kit (SDK).
For more information about the pylon API and the pylon Viewer, see Section 3 on page 21.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Basler GigE CAMERAS and is the answer not in the manual?

Basler GigE CAMERAS Specifications

General IconGeneral
BrandBasler
ModelGigE CAMERAS
CategoryDigital Camera
LanguageEnglish

Related product manuals