Brightness analysis algorithms for automatic exposure and gain control. More...
Enumerations | |
| enum | peak_afl_controller_brightness_algorithm { PEAK_AFL_CONTROLLER_BRIGHTNESS_ALGORITHM_MEDIAN , PEAK_AFL_CONTROLLER_BRIGHTNESS_ALGORITHM_MEAN } |
| Brightness calculation algorithms. More... | |
Functions | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_BrightnessAlgorithm_Set (peak_afl_controller_handle controller, peak_afl_controller_brightness_algorithm algorithm) |
| Set the brightness analysis algorithm for a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_BrightnessAlgorithm_Get (peak_afl_controller_handle controller, peak_afl_controller_brightness_algorithm *algorithm) |
| Get the current brightness analysis algorithm for a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_BrightnessAlgorithm_IsSupported (peak_afl_controller_handle controller, peak_afl_BOOL8 *supported) |
| Check if brightness algorithm configuration is supported for a controller. | |
Brightness analysis algorithms for automatic exposure and gain control.
Sets the algorithm which will be used for the auto brightness calculation.
With mean the average value is calculated by adding all pixel values and dividing by the number of pixels.
With median the middle value is found by ordering all pixel values and selecting the middle one.
The algorithm can be changed dynamically during operation without affecting other controller settings.
Brightness calculation algorithms.
Defines the mathematical algorithms used to calculate representative brightness values from image data. Different algorithms may be more suitable for different image content and lighting conditions.
| PEAK_AFL_API_STATUS peak_afl_AutoController_BrightnessAlgorithm_Get | ( | peak_afl_controller_handle | controller, |
| peak_afl_controller_brightness_algorithm * | algorithm ) |
Get the current brightness analysis algorithm for a controller.
Retrieves the current brightness analysis algorithm configuration for the specified brightness controller. The algorithm determines how the controller evaluates image brightness and calculates appropriate parameter adjustments. This information is useful for understanding the controller's analysis behavior and for debugging brightness control performance.
| [in] | controller | Controller handle to query for brightness algorithm |
| [out] | algorithm | Pointer to receive the current brightness analysis algorithm. The value indicates which statistical method is being used for brightness evaluation. See peak_afl_controller_brightness_algorithm for possible values and their meanings. |
| PEAK_AFL_API_STATUS peak_afl_AutoController_BrightnessAlgorithm_IsSupported | ( | peak_afl_controller_handle | controller, |
| peak_afl_BOOL8 * | supported ) |
Check if brightness algorithm configuration is supported for a controller.
Determines whether the specified controller supports brightness algorithm configuration. Brightness algorithm configuration allows selection of different statistical methods for analyzing image brightness, such as mean calculation, percentile analysis, or weighted averaging. Not all controllers support algorithm selection, and this feature is typically available only for brightness-type controllers.
| [in] | controller | Controller handle to check for brightness algorithm support |
| [out] | supported | Pointer to receive support status:
|
| PEAK_AFL_API_STATUS peak_afl_AutoController_BrightnessAlgorithm_Set | ( | peak_afl_controller_handle | controller, |
| peak_afl_controller_brightness_algorithm | algorithm ) |
Set the brightness analysis algorithm for a controller.
Configures the algorithm used by the brightness controller to analyze image brightness and determine appropriate exposure or gain adjustments. Different algorithms use various statistical methods to evaluate image brightness, such as mean calculation, percentile analysis, or weighted averaging. The choice of algorithm affects how the controller responds to different lighting conditions and image content.
| [in] | controller | Controller handle for which to set the brightness algorithm |
| [in] | algorithm | Brightness analysis algorithm to use. Available algorithms include different statistical methods for brightness evaluation. See peak_afl_controller_brightness_algorithm for available options. |