![]() |
IDS peak AFL v1.7.0
|
Enumerations | |
| enum | peak_afl_controller_sharpness_algorithm { PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_AUTO , PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_TENENGRAD , PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_SOBEL , PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_MEAN_SCORE , PEAK_AFL_CONTROLLER_SHARPNESS_ALGORITHM_HISTOGRAM_VARIANCE } |
| controller sharpness algorithm (focus) More... | |
Functions | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_SharpnessAlgorithm_IsSupported (peak_afl_controller_handle controller, peak_afl_BOOL8 *supported) |
| check setting a sharpness algorithm is supported by a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_SharpnessAlgorithm_Set (peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm algorithm) |
| Set the used sharpness algorithm for a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_SharpnessAlgorithm_Get (peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm *algorithm) |
| Get the used sharpness algorithm for a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_SharpnessAlgorithm_GetList (peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm *typeList, uint32_t *listSize) |
| Get the list of supported sharpness algorithms for a controller. | |
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. controller sharpness algorithm (focus)
| PEAK_AFL_API_STATUS peak_afl_AutoController_SharpnessAlgorithm_Get | ( | peak_afl_controller_handle | controller, |
| peak_afl_controller_sharpness_algorithm * | algorithm ) |
Get the used sharpness algorithm for a controller.
| [in] | controller | controller handle |
| [out] | algorithm | auto controller sharpness algorithm |
| PEAK_AFL_API_STATUS peak_afl_AutoController_SharpnessAlgorithm_GetList | ( | peak_afl_controller_handle | controller, |
| peak_afl_controller_sharpness_algorithm * | typeList, | ||
| uint32_t * | listSize ) |
Get the list of supported sharpness algorithms for a controller.
Uses the Two Staged Data Query principle. To set a value, see peak_afl_AutoController_SharpnessAlgorithm_Set.
| [in] | controller | controller handle |
| [out] | typeList | Pointer to a user allocated list of peak_afl_controller_sharpness_algorithm. If this parameter is NULL, listSize will contain the needed count of typeList. |
| [in,out] | listSize |
|
| PEAK_AFL_API_STATUS peak_afl_AutoController_SharpnessAlgorithm_IsSupported | ( | peak_afl_controller_handle | controller, |
| peak_afl_BOOL8 * | supported ) |
check setting a sharpness algorithm is supported by a controller.
If supported is PEAK_AFL_TRUE sharpness algorithm is supported, otherwise it is unsupported.
Call peak_afl_AutoController_SharpnessAlgorithm_GetList to get a list of supported sharpness algorithms.
| [in] | controller | controller handle |
| [out] | supported | boolean if controller supports setting a sharpness algorithm |
| PEAK_AFL_API_STATUS peak_afl_AutoController_SharpnessAlgorithm_Set | ( | peak_afl_controller_handle | controller, |
| peak_afl_controller_sharpness_algorithm | algorithm ) |
Set the used sharpness algorithm for a controller.
To get a list of supported algorithms, see peak_afl_AutoController_SharpnessAlgorithm_GetList.
| [in] | controller | controller handle |
| [in] | algorithm | auto controller sharpness algorithm |