User`s manual

AW00049313000 Standard Features
Basler runner 197
Shading Set File Format
A shading set file that you create for upload to the camera must be a binary file. The file must include
a header plus the shading correction data (the multipliers for each pixel).
The header format is:
with the following characteristics:
The shading correction values are placed after the header as 32 bit fixed point values with 16 pre-
decimal and 16 post-decimal bits (but only 12 bits are actually used, 2 pre and 10 post decimal
positions).
For a mono camera with one line and e.g. 1024 pixels, there will be 1 x 1024 x 4 bytes of data
included in the file after the header.
For a color camera with three lines and 2098 pixels per line, there will be 3 x 2098 x 4 bytes of data
included in the file after the header. The first 2098 x 4 bytes contain the red correction values, the
second 2098 x 4 bytes contain the green correction values, and the third 2098 x 4 bytes contain the
blue correction values.
All multi-byte values (2 byte, 4 byte) are stored in little endian format.
Field Name Description Data Type Size Value
Version Version of the shading correction
method
Unsigned char 1 byte 0x5a = version 1
Shading Type Type of shading correction Unsigned char 1 byte 0xC3 = gain shading
Sensor Type Type of sensor in the camera Unsigned char 1 byte 0x01 = area scan
0x02 = line scan
Line Type Number of lines in the sensor Unsigned char 1 byte 0x01 = 1 line
0x03 = 3 lines
Width Number of pixels in each sensor
line
Unsigned short 2 bytes 0x0400 = 1024 pixels/line
0x0800 = 2048 pixels/line
0x0832 = 2098 pixels/line
Reserved Reserved Unsigned short 2 bytes 0x0000
Version
Shading
Type
Sensor
Type
Line
Type
ReservedWidth