![]() |
IDS peak AFL v1.7.0
|
Topics | |
| Skip frames | |
| Region of interest | |
| Mode | |
| Callbacks | |
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. | |
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. This parameter strongly influences the control speed. Choosing small values can destabilize the automatic control.
Skip frames parameter. This reduces the number of automatic adjustments done by the camera. If a smaller part of the image should be processed, a region of interest (ROI) can be set.
ROI does not fit into the processed image dimension the processing callback is called with corresponding error status.
ROI for automatic control is set to the full size of the processed image by default.
ROI all values must be set to 0. It is possible to be informed for specific events via callbacks. The following callbacks are available:
Finished callback will only be called when the controller runs in Once mode.| 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.
| [in] | controller | controller handle |
| [out] | averageRed | autofeature average red channel |
| [out] | averageGreen | autofeature average green channel |
| [out] | averageBlue | autofeature average blue channel |