Operation and Features
BASLER L304
kc 3-45
Draft
7. Once 16 image capture cycles have been completed, the camera uses the following process
to calculate a set of PRNU shading correction values for each of the three lines:
a) The camera uses the captured data to calculate an average gray value for the pixels in
the line.
b) The camera finds the pixel in the line with the highest average gray value.
c) For each of the other pixels in the line, the camera determines the additional gain that
would be needed to make that pixel’s average value equal to the average value for the
highest pixel.
d) The camera creates a set of PRNU shading values for the line that contains the
calculated gain adjustments.
The set of PRNU values for each line is placed in the camera’s volatile memory. These values
overwrite any PRNU shading values that are already in the memory. The current set of PRNU
values in the volatile memory is used whenever PRNU is enabled.
Enabling PRNU Shading Correction
Once you have a complete set of PRNU shading values in place, you can enable and use PRNU
shading correction. With the PRNU correction feature enabled, the camera will use the set of
PRNU shading values to apply the appropriate gain adjustment to each pixel to correct for PRNU.
You can enable PRNU shading correction with the Camera Configuration Tool Plus (CCT+) or by
using binary read/write commands from within your own application to set the camera’s control
and status registers (CSRs).
With the CCT+
With the CCT+ (see Section 4.1), you use the Shading Mode parameter in the Image
Enhancement parameters group to enable PRNU shading correction.
By Setting CSRs
You enable PRNU shading correction by writing a value to the Mode field of the Shading Mode
CSR (see page 4-32).
See Section 4.2.2 for an explanation of CSRs and Section 4.3.1 for an explanation of using read/
write commands.
3.10.1.4 Saving DSNU and PRNU Shading Correction Values
When you generate a set of DSNU shading correction values, the set is placed in the camera’s
volatile memory and overwrites any existing values in the memory. The same is true when you
generate a set of PRNU shading values. The DSNU and PRNU shading values currently in the
volatile memory are used whenever shading correction is enabled.
Values in the camera’s volatile memory are lost if the camera is reset or the camera power is
switched off. On L304
kc cameras, you can save the DSNU and PRNU shading values currently
in the volatile memory to a file in the camera’s non-volatile memory. When you perform the
process to save the shading values, the DSNU values and the PRNU values currently in the
volatile memory are stored together as a complete set in a single file in the non-volatile memory.
Files saved in the non-volatile memory are not lost at reset or power off. You can save one
complete set of DSNU and PRNU shading values to a file in the non-volatile memory.