--- title: "Perform white balancing" slug: "perform-white-balancing" updated: 2026-09-02T05:51:29Z published: 2026-09-02T05:51:29Z canonical: "docs-linescan.alliedvision.com/perform-white-balancing" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs-linescan.alliedvision.com/llms.txt > Use this file to discover all available pages before exploring further. # Perform white balancing The adjustment of a camera system is an iterative process. It might be necessary to do the white balancing step twice. NOTE: The white reference must be clean and in the focusing plane of the camera. Use a professional white reference, e.g. a clean white ceramic or plastic material. For the best result use a moving white reference to diminish the effects on any optical variations in the white reference. ## Prepare your system | 1. Place a white reference under the camera. 2. Set the lens aperture f-stop on the camera lens. 3. [Load the default user set](https://docs.chromasens.de/docs/acquire-a-test-pattern-1#load-the-default-user-set). 4. Set the maximum exposure time. 5. Set the line time. 6. Switch on the illumination and set the light current. | | | --- | --- | | **Deactivate DSNU and PRNU correction** 1. In the Configuration window navigate to *Camera Image Calibration* → *DSNU/PRNU*. 2. Select the **Deactivate DSNU correction** checkbox. 3. Select the **Deactivate PRNU correction** checkbox. | ![getting-started-image-evfwho6o](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/getting-started-image-evfwho6o.png) | ## Configure the gain settings | 1. Click on the **plus sign** in the right window to add a new tab. 2. Select **Horizontal Line Plot**. 3. **Start Image acquisition** | ![getting-started_white_balancing_1](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/getting-started_white_balancing_1.PNG) | | --- | --- | | 1. In the Configuration window navigate to *Camera Image Calibration* → *Gain*. The current values in the 10 bit range are displayed. | ![getting-started_white_balancing_2](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/getting-started_white_balancing_2.PNG) | | 1. Select the **Enable** checkbox in *Automatic gain control settings*. 2. Set the reference mark position and size: Below *ROI for automatic gain control* set the values for **Offset X**, **Offset Y**, **Width** and **Height**.HINTTo control the position in images you can temporarily select the **Visible feature**. 3. Make sure that the reference mark position is at the brightest region of the image (at the center). 4. Set the target white reference values: Below *Target values in 10 bit range* set the values for **Red**, **Green**, **Blue** and **Infrared**.NOTEThe target values should be between 800 – 880 to get values between 200 – 220 in the horizontal line plot. 5. Click on **Once** in *Automatic gain control settings*. | ![getting-started_white_balancing_3](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/getting-started_white_balancing_3.PNG)![getting-started_white_balancing_4](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/getting-started_white_balancing_4.PNG) | The camera performs a white balancing with the current settings. After successful balancing *Gain Auto Status* returns **Control Successful**. NOTE: If the white balancing was not successful, you have the following options: - Modify the exposure time - Modify the illumination current - Modify the f-stop of your lens - Modify the sensor sensitivity NOTE: Repeat the white balancing in the following cases If you change the f-stop of the camera lens or the setting of the illumination repeat the white balancing.