What are you looking for?

Buffer Filling Rules

GenTL buffer filling rules for image acquisition from area-scan and line-scan cameras

GenTL Buffer Filling Rules – Area-scan cameras

In area-scan imaging, GenTL buffers are filled according to the following rules:

  • The first acquired line data of a frame is, by default, stored at the beginning of a new buffer. When vertical image flipping is enabled by setting StripeArrangement to 1X_1YE, the first acquired line data of a frame is stored at the location of the last full line of a new buffer.
  • When image transfer to host memory is done, the buffer, possibly partially filled, is made available to the application for processing.
  • When the buffer is too small to contain a complete frame, the remaining data is discarded.

GenTL Buffer Filling Rules – Line-scan cameras

In line-scan imaging, GenTL buffers are filled according to the following rules:

  • The first acquired line data of a scanis, by default, stored at the beginning of a new buffer. When vertical image flipping is enabled by setting StripeArrangement to 1X_1YE, the first acquired line data of a scan is stored at the location of the last full line of a new buffer.
  • A buffer contains an integer number of image lines data.
  • When the remaining space of a buffer is not sufficient to store an image line data, the acquisition continues into a new buffer and the filled buffer is made available to the application for processing.
  • When the last line data of a scan is acquired, the last buffer, possibly partially filled, is made available to the application for processing.