![]() |
IDS peak AFL v1.7.0
|
Topics | |
| Skip frames | |
| Hysteresis | |
| Limit | |
| Weighted region of interest | |
| Region of interest presets | |
| Sharpness algorithm | |
| Mode | |
| Peak search algorithm | |
| Callbacks | |
The autofocus controller will automatically adjusts the lens to focus on a subject.
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. Defines the size of the interval range after which the algorithm terminates the search.
With the minimum and maximum limit the focus search range for the focus_algorithm can be limited. The focus_limit affects whether and where a maximum value is found.
The Weighted Region of Interest (Weighted ROI) is a concept to prioritize certain areas of an image over others. In the context of autofocus systems, the Weighted ROI is used to assign more importance to specific regions of the image, such as where the main subject is likely located, to ensure optimal focus.
Continuous mode.TODO
Sets the algorithm for the sharpness calculation.
Auto: Defaults to PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_TENENGRADTenengrad: Sobel factors in x- and y-direction and summation of the euclidean distances.Mean Score: Summation of the difference between two mean values from two pixel values each in x- and y-direction.Histogram Variance: Standard deviation of the gray values in the histogram of the mean value. Sets the algorithm for the maximum value search.
Auto: Defaults to PEAK_AFL_CONTROLLER_ALGORITHM_GOLDEN_RATIO_SEARCHGolden Ratio Search: Within the preset interval range, the focus function repeatedly divides into new intervals using the Golden Ratio. The interval range is decreased with each new calculation. This process continues until the interval range is less than or equal to the set hysteresis.Hill Climbing Search: Within the preset interval range, the focus function scans the register values for a maximum with medium step width until two falling sharpness values occur at the last two steps. Based on these values and the step width, the interval range and step width are reduced and the scan is repeated within this interval. This process continues until the interval range is less than or equal to the set hysteresis.Global Search: Within the preset interval range, the focus function completely scans with medium step width and the maximum that occurred is memorized. Based on the maximum, the interval range and the step width are reduced and the scan is repeated within this interval. This process continues until the interval range is less than or equal to the set hysteresis.Full Scan: Within the preset interval range, the focus function scans with a constant step width for an optimal result (step width: hysteresis). 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.