![]() |
IDS peak comfortC v1.12.0
|
Data Structures | |
| struct | peak_focus_roi |
| The peak focus ROI (2D) with weight. More... | |
Enumerations | |
| enum | peak_focus_roi_weight { PEAK_FOCUS_ROI_WEIGHT_INVALID , PEAK_FOCUS_ROI_WEIGHT_WEAK , PEAK_FOCUS_ROI_WEIGHT_MEDIUM , PEAK_FOCUS_ROI_WEIGHT_STRONG } |
| The peak focus ROI weight classes. More... | |
| enum | peak_auto_focus_search_algorithm { PEAK_AUTO_FOCUS_SEARCH_ALGORITHM_INVALID , PEAK_AUTO_FOCUS_SEARCH_ALGORITHM_GOLDEN_RATIO , PEAK_AUTO_FOCUS_SEARCH_ALGORITHM_HILL_CLIMBING , PEAK_AUTO_FOCUS_SEARCH_ALGORITHM_FULL_SCAN , PEAK_AUTO_FOCUS_SEARCH_ALGORITHM_GLOBAL_SEARCH } |
| The peak focus search algorithm. More... | |
| enum | peak_sharpness_algorithm { PEAK_SHARPNESS_ALGORITHM_INVALID , PEAK_SHARPNESS_ALGORITHM_TENENGRAD , PEAK_SHARPNESS_ALGORITHM_SOBEL , PEAK_SHARPNESS_ALGORITHM_MEAN_SCORE , PEAK_SHARPNESS_ALGORITHM_HISTOGRAM_VARIANCE } |
| The peak sharpness measurement algorithm. More... | |
Functions | |
| peak_access_status | peak_IPL_AutoFocus_GetAccessStatus (peak_camera_handle hCam) |
| Query the auto focus access status. | |
| peak_status | peak_IPL_AutoFocus_ROI_Set (peak_camera_handle hCam, const peak_focus_roi *autoFocusROIList, size_t autoFocusROICount) |
| Set the list of host auto focus regions of interest. | |
| peak_status | peak_IPL_AutoFocus_ROI_Get (peak_camera_handle hCam, peak_focus_roi *autoFocusROIList, size_t *autoFocusROICount) |
| Get the list of host auto focus regions of interest. | |
| peak_status | peak_IPL_AutoFocus_Mode_Set (peak_camera_handle hCam, peak_auto_feature_mode autoFocusMode) |
| Set the host auto focus control mode. | |
| peak_status | peak_IPL_AutoFocus_Mode_Get (peak_camera_handle hCam, peak_auto_feature_mode *autoFocusMode) |
| Get the host auto focus control mode. | |
| peak_status | peak_IPL_AutoFocus_SearchAlgorithm_Set (peak_camera_handle hCam, peak_auto_focus_search_algorithm searchAlgorithm) |
| Set the host auto focus search algorithm. | |
| peak_status | peak_IPL_AutoFocus_SearchAlgorithm_Get (peak_camera_handle hCam, peak_auto_focus_search_algorithm *searchAlgorithm) |
| Get the host auto focus search algorithm. | |
| peak_status | peak_IPL_AutoFocus_SharpnessAlgorithm_Set (peak_camera_handle hCam, peak_sharpness_algorithm sharpnessAlgorithm) |
| Set the host auto focus sharpness algorithm. | |
| peak_status | peak_IPL_AutoFocus_SharpnessAlgorithm_Get (peak_camera_handle hCam, peak_sharpness_algorithm *sharpnessAlgorithm) |
| Get the focus sharpness algorithm. | |
| peak_status | peak_IPL_AutoFocus_Range_Set (peak_camera_handle hCam, uint32_t rangeBegin, uint32_t rangeEnd) |
| Set the host auto focus range. | |
| peak_status | peak_IPL_AutoFocus_Range_Get (peak_camera_handle hCam, uint32_t *rangeBegin, uint32_t *rangeEnd) |
| Get the host auto focus range. | |
| peak_status | peak_IPL_AutoFocus_Hysteresis_Set (peak_camera_handle hCam, uint8_t hysteresis) |
| Set the host auto focus hysteresis. | |
| peak_status | peak_IPL_AutoFocus_Hysteresis_Get (peak_camera_handle hCam, uint8_t *hysteresis) |
| Get the host auto focus hysteresis. | |
| peak_status | peak_IPL_AutoFocus_Hysteresis_GetRange (peak_camera_handle hCam, uint8_t *minHysteresis, uint8_t *maxHysteresis, uint8_t *incHysteresis) |
| Get the current range of valid auto focus hysteresis values. | |
Auto focus related functions and types.
After each configuration change, the autofocus must be retriggered. This is necessary for both "Once" and "Continuous" mode.
The peak focus search algorithm.
The peak focus ROI weight classes.
| Enumerator | |
|---|---|
| PEAK_FOCUS_ROI_WEIGHT_INVALID | Invalid focus ROI weight. Use this value for the initialization of variables of type peak_focus_roi_weight. |
| PEAK_FOCUS_ROI_WEIGHT_WEAK | Focus ROI weight weak. |
| PEAK_FOCUS_ROI_WEIGHT_MEDIUM | Focus ROI weight medium. |
| PEAK_FOCUS_ROI_WEIGHT_STRONG | Focus ROI weight strong. |
The peak sharpness measurement algorithm.
| Enumerator | |
|---|---|
| PEAK_SHARPNESS_ALGORITHM_INVALID | Invalid sharpness algorithm type. Use this value for the initialization of variables of type peak_sharpness_algorithm. |
| PEAK_SHARPNESS_ALGORITHM_TENENGRAD | Sharpness algorithm Tenengrad. Image sharpness calculation due edge sharpness. |
| PEAK_SHARPNESS_ALGORITHM_SOBEL | Sharpness algorithm Sobel. Image sharpness calculation due edge sharpness. |
| PEAK_SHARPNESS_ALGORITHM_MEAN_SCORE | Sharpness algorithm Mean Score. Simpler pixel calculations and smaller neighboorhood than Tenengrad. |
| PEAK_SHARPNESS_ALGORITHM_HISTOGRAM_VARIANCE | Sharpness algorithm Histogram Variance. Uses histogram values to determine the image sharpness. |
| peak_access_status peak_IPL_AutoFocus_GetAccessStatus | ( | peak_camera_handle | hCam | ) |
Query the auto focus access status.
Provides the current access status for the auto focus feature.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_Hysteresis_Get | ( | peak_camera_handle | hCam, |
| uint8_t * | hysteresis ) |
Get the host auto focus hysteresis.
Reads the current auto focus hysteresis value ("search accuracy").
| [in] | hCam | The camera handle. |
| [out] | hysteresis | The hysteresis. |
hysteresis is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_Hysteresis_GetRange | ( | peak_camera_handle | hCam, |
| uint8_t * | minHysteresis, | ||
| uint8_t * | maxHysteresis, | ||
| uint8_t * | incHysteresis ) |
Get the current range of valid auto focus hysteresis values.
Queries the current range of valid values for the auto focus hysteresis property.
| [in] | hCam | The camera handle. |
| [out] | minHysteresis | The minimum hysteresis. |
| [out] | maxHysteresis | The maximum hysteresis. |
| [out] | incHysteresis | The hysteresis increment. |
minHysteresis, maxHysteresis, and incHysteresis is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_Hysteresis_Set | ( | peak_camera_handle | hCam, |
| uint8_t | hysteresis ) |
Set the host auto focus hysteresis.
Writes the auto focus hysteresis value ("search accuracy").
| [in] | hCam | The camera handle. |
| [in] | hysteresis | The hysteresis to set. |
hysteresis is out of range. Check the range of valid values via peak_IPL_AutoFocus_Hysteresis_GetRange. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_Mode_Get | ( | peak_camera_handle | hCam, |
| peak_auto_feature_mode * | autoFocusMode ) |
Get the host auto focus control mode.
Reads the current host auto focus control mode.
| [in] | hCam | The camera handle. |
| [out] | autoFocusMode | The current auto focus control mode. |
hCam is an invalid camera handle. autoFocusMode is an invalid pointer. | peak_status peak_IPL_AutoFocus_Mode_Set | ( | peak_camera_handle | hCam, |
| peak_auto_feature_mode | autoFocusMode ) |
Set the host auto focus control mode.
Writes the desired host auto focus control mode.
| [in] | hCam | The camera handle. |
| [in] | autoFocusMode | The auto focus control mode to set. |
hCam is an invalid camera handle. autoFocusMode is an invalid auto feature mode. Check peak_auto_feature_mode. | peak_status peak_IPL_AutoFocus_Range_Get | ( | peak_camera_handle | hCam, |
| uint32_t * | rangeBegin, | ||
| uint32_t * | rangeEnd ) |
Get the host auto focus range.
Reads the current begin and end of the auto focus search range.
| [in] | hCam | The camera handle. |
| [out] | rangeBegin | The begin of the focus search range. |
| [out] | rangeEnd | The end of the focus search range. |
rangeBegin and rangeEnd is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_Range_Set | ( | peak_camera_handle | hCam, |
| uint32_t | rangeBegin, | ||
| uint32_t | rangeEnd ) |
Set the host auto focus range.
Writes the begin and end of the focus search range.
| [in] | hCam | The camera handle. |
| [in] | rangeBegin | The begin of the focus search range to set. |
| [in] | rangeEnd | The end of the focus search range to set. |
rangeBegin and rangeEnd is out of range or rangeEnd is less than rangeBegin. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_ROI_Get | ( | peak_camera_handle | hCam, |
| peak_focus_roi * | autoFocusROIList, | ||
| size_t * | autoFocusROICount ) |
Get the list of host auto focus regions of interest.
Reads the current host auto focus ROI list.
This function implements the Two Staged Data Query principle.
| [in] | hCam | The camera handle. |
| [out] | autoFocusROIList | Pointer to a user allocated array buffer to receive the focus ROI list. If this parameter is NULL, autoFocusROICount will contain the current number of ROIs. The required size of autoFocusROIList in bytes is autoFocusROICount x sizeof(peak_focus_roi). |
| [in,out] | autoFocusROICount |
|
autoFocusROIList is not NULL and the value of *autoFocusROICount is too small to receive the expected amount of data. autoFocusROICount is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_ROI_Set | ( | peak_camera_handle | hCam, |
| const peak_focus_roi * | autoFocusROIList, | ||
| size_t | autoFocusROICount ) |
Set the list of host auto focus regions of interest.
Writes the desired host auto focus ROI list.
| [in] | hCam | The camera handle. |
| [in] | autoFocusROIList | The list of auto focus ROI to set. |
| [in] | autoFocusROICount | The number of ROIs. |
autoFocusROIList is out of range. autoFocusROIList is an invalid pointer or at least one of the ROIs in autoFocusROIList is invalid. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_SearchAlgorithm_Get | ( | peak_camera_handle | hCam, |
| peak_auto_focus_search_algorithm * | searchAlgorithm ) |
Get the host auto focus search algorithm.
Reads the current host auto focus search algorithm.
| [in] | hCam | The camera handle. |
| [out] | searchAlgorithm | The search algorithm. |
searchAlgorithm is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_SearchAlgorithm_Set | ( | peak_camera_handle | hCam, |
| peak_auto_focus_search_algorithm | searchAlgorithm ) |
Set the host auto focus search algorithm.
Writes the host auto focus search algorithm.
The search algorithm is only used in the auto once mode.
The search algorithm is assumed when the auto once mode is enabled.
| [in] | hCam | The camera handle. |
| [in] | searchAlgorithm | The search algorithm. |
searchAlgorithm is an invalid auto focus search algorithm. Check peak_auto_focus_search_algorithm. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_SharpnessAlgorithm_Get | ( | peak_camera_handle | hCam, |
| peak_sharpness_algorithm * | sharpnessAlgorithm ) |
Get the focus sharpness algorithm.
Reads the current auto focus sharpness algorithm.
| [in] | hCam | The camera handle. |
| [out] | sharpnessAlgorithm | The search algorithm. |
sharpnessAlgorithm is an invalid pointer. hCam is an invalid camera handle. | peak_status peak_IPL_AutoFocus_SharpnessAlgorithm_Set | ( | peak_camera_handle | hCam, |
| peak_sharpness_algorithm | sharpnessAlgorithm ) |
Set the host auto focus sharpness algorithm.
Writes the auto focus sharpness algorithm.
The sharpness algorithm is only used in the auto once mode.
The sharpness algorithm is applied when the auto once mode is enabled.
| [in] | hCam | The camera handle. |
| [in] | sharpnessAlgorithm | The sharpness algorithm to set. |
sharpnessAlgorithm is an invalid sharpness algorithm. Check peak_sharpness_algorithm. hCam is an invalid camera handle.