![]() |
IDS peak AFL v2.0.0
|
Automatic white balance control for color correction and temperature adjustment. More...
Topics | |
| Skip frames | |
| Frame processing optimization by skipping frames to reduce computational load. | |
| Region of interest | |
| Analysis area configuration for automatic control operations. | |
| Mode | |
| Operation mode configuration for automatic control functionality. | |
| Callbacks | |
| Event notification callbacks for automatic control operations. | |
Functions | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_GetLastAutoAverages (peak_afl_controller_handle controller, uint8_t *averageRed, uint8_t *averageGreen, uint8_t *averageBlue) |
| Get the last auto average for a controller. | |
Automatic white balance control for color correction and temperature adjustment.
Depending on the light source, light can have different color temperatures so that the images may have a color cast. At low color temperatures (e.g. light from incandescent lamps), the white content shifts towards a red hue. At high color temperatures (e.g. light from fluorescent lamps), the white content shifts a blue hue.
The white balance control feature uses the RGB gain settings of the camera to correct the white level. This is achieved by adjusting the gain controls until the red or blue channel matches the average brightness of the green channel.
For ongoing adaptations the Continuous mode has to be used so that it responds to deviations from the target value. To disable the control functionality automatically once the target value has been reached, (approximately) use the Once mode.
The Skip frames setting defines how many frames should be skipped between processing operations. This parameter strongly influences both control speed and system stability.
When skip frames is set to N, the controller will:
Example: Skip frames = 3 means process every 4th frame (process 1, skip 3, process 1, skip 3...)
Skip frames can be adjusted dynamically based on conditions:
If a smaller part of the image should be processed, a region of interest (ROI) can be set. The ROI allows focusing the auto feature analysis on specific areas while ignoring irrelevant parts of the image.
It is possible to be informed for specific events via callbacks. Callbacks provide real-time feedback about controller operations and enable responsive application behavior.
Finished will be called when the controller has completed its operation and reached the target value.
When called:
Processing will be called during image processing to provide real-time feedback.
When called:
Important Threading Notes:
White balance control components.
Defines the different camera parameters that can be adjusted by the white balance controller to achieve accurate color reproduction. Each component affects color balance differently and may have different performance characteristics.
| PEAK_AFL_API_STATUS peak_afl_AutoController_GetLastAutoAverages | ( | peak_afl_controller_handle | controller, |
| uint8_t * | averageRed, | ||
| uint8_t * | averageGreen, | ||
| uint8_t * | averageBlue ) |
Get the last auto average for a controller.
Used by Controllers processing a color image. This function retrieves the most recent calculated average values for each color channel (RGB) from the auto feature processing. These averages represent the calculated brightness levels for each color channel from the last processed frame.
| [in] | controller | controller handle |
| [out] | averageRed | autofeature average red channel |
| [out] | averageGreen | autofeature average green channel |
| [out] | averageBlue | autofeature average blue channel |