Basler L100k User Manual page 53

Table of Contents

Advertisement

Uploading Shading Correction Data to the Camera
Once the shading correction table is created, you must write the correction values to the camera.
Before starting to write the data, check whether dropped pixels must be taken into ac-
count (see Section 3.6.3.2).
The following steps describe how to access the shading correction register fields, when writing
data to the camera.
1. Use the Shading Correction Data Transfer binary write command described in Section
4.2.4.9 to open the registers.
2. Use the Shading Correction Data Transfer binary read command to verify that the registers
have been opened.
Shading data must be written in packets of up to 58 bytes, one byte per correction value
according to their actual sequence:
3. Use the Shading Correction Data write command described in Section 4.2.4.10 to write the
first packet of size 58 bytes including the correction values of pixels 1 to 58.
4. Use the Shading Correction Data write command to write the next packet of 58 bytes
including the correction values of pixels 59 to 116.
5. Continue using the Shading Correction Data write command to write packets of 58 bytes to
the camera until all correction values have been written to the camera. For example, for
cameras with a 1024 pixel sensor, you write 17 packets of 58 bytes and one packet of 38
bytes. Make sure that the values are uploaded according to their actual sequence. The
camera will place every uploaded packet of data directly after the previous one.
6. Once all data has been loaded, use the Shading Correction Data Transfer binary write
command described in Section 4.2.4.9 to close the registers.
7. Use the shading data test image (see Section 3.6.4) to verify the current shading correction
values.
Normally, a copy of the shading table is stored in a volatile memory location and a copy
is also stored in a non-volatile memory location. When shading correction is enabled,
the FPGA in the camera uses the table stored in volatile memory to perform shading cor-
rection by applying the correction values in the table to the pixel values for each cap-
tured line.
When you store shading correction data to the camera, you can use three types of bi-
nary commands (see Section 4.2.4.9):
Upload data to the camera's non-volatile memory location. Any table already in this
memory will be overwritten. A table stored in the non-volatile memory will not be
lost when power is switched off.
Upload data to volatile memory. This feature is useful if you wish to load and test a
shading table without overwriting the table that is currently stored in the non-volatile
memory.
Copy the shading table from non-volatile memory to volatile memory.
BASLER L100
k Series
DRAFT
Operation and Features
3-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents