User`s manual
Standard Features AW00049313000
196 Basler runner
and divide the result by 60, add the 60 pixel 1 values together and divide the result by 60,
etc.)
8. For each line of the sensor’s pixels, calculate the multipliers:
a. In the line with averaged pixel values, find the pixel that has the brightest value.
b. For each pixel in the line with averaged pixel values, calculate the multiplier that would
make the value of that pixel equal to the value of the brightest pixel.
9. Create a binary file that contains a header, plus all of the multipliers for the sensor’s lines. The
content and the format of the file must be as described later in this section.
10. Use the standard GenICam file access procedure to upload the file to the camera as either
User Shading Set 1 or User Shading Set 2.
Working with Shading Sets
Once you have created and loaded shading set files into the camera, you can use the following
pylon API functions to work with the shading sets:
Shading Selector - is used to select the type of shading correction to configure. Currently, gain
shading is the only available selection.
Shading Enable - is used to enable and disable the selected type of shading correction.
Shading Set Selector - is used to select the shading set to which the activate command will be
applied.
Shading Set Activate - is used to activate the selected shading set. "Activate" means that the
shading set will be copied from the camera’s non-volatile memory into it’s volatile memory. When
the shading correction feature is enabled, the shading set in the volatile memory will be used to
perform shading correction.
Shading Set Default Selector - is used to select the shading set that will be loaded into the
camera’s volatile memory during camera bootup.
Shading Status - is used to determine the error status of operations such as Shading Set Activate.
The following error statuses may be indicated:
No error - the last operation performed was successful.
Startup Set Error - there was a problem with the default shading set.
Activate error - the selected shading set could not be loaded into the volatile memory.
The use of the pylon API functions listed above is illustrated in the shading correction sample code
included with the pylon SDK.
You can also use the Shading parameters group in the Basler pylon Viewer application to access
these functions. And you can use the File Access selection in the Camera menu of the Viewer to
upload a shading set file to the camera.










