Basler L100k User Manual page 52

Table of Contents

Advertisement

Operation and Features
Calculating Shading Correction Data
Create an averaged line from the 100 captured lines by calculating the average of the 100 values
for each pixel:
1. Average the 100 pixel number one values in the image data file.
2. Average the 100 pixel number two values in the image data file.
3. Average the 100 pixel values for pixels number three through 1024 for cameras with a 1024
pixel sensor or for pixels three through 2048 for cameras with a 2048 pixel sensor.
4. Once the pixel values are averaged, find the lightest pixel (the averaged pixel with the
highest gray value).
5. For each averaged pixel, calculate a correction value that would make the value of the pixel
equal to the value of the lightest pixel. Use the formula shown below:
Sample Calculation 1: If the gray value of the lightest averaged pixel on the sensor was 170
and the averaged value for pixel number one was 160, the calculation for pixel number one
would look like this:
The correction value for pixel number one would be 16 (decimal).
Sample Calculation 2: If the gray value of the lightest averaged pixel on the sensor was 170
and the averaged value for pixel number two was 165, the calculation for pixel number two
would look like this:
The correction value for pixel number two would be 8 (decimal), and so on.
The resulting table of correction values is the "shading correction table".
3-20
DRAFT
Value of lightest pixel x 256
Correction value N
=
------------------------------------------------------------------------ - 256
where N = Number of the pixel
Correction value one
=
Correction value two
=
Averaged value of pixel N
170 x 256
=
------------------------- - 256
16
160
170 x 256
=
------------------------- - 256
7.75
165
=
8 (rounded)
BASLER L100
k Series

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents