IDSpeakAFL  v1.2.0
peak_afl.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <peak_ipl/backend/peak_ipl_backend.h>
14 #include <peak/backend/peak_backend.h>
15 
16 /* Function declaration modifiers */
17 #if defined(_WIN32)
18 # ifndef PEAK_AFL_NO_DECLSPEC_STATEMENTS
19 # ifdef PEAK_AFL_EXPORTING
20 # define PEAK_AFL_EXPORT __declspec(dllexport)
21 # else
22 # define PEAK_AFL_EXPORT __declspec(dllimport)
23 # endif
24 # else
25 # define PEAK_AFL_EXPORT
26 # endif
27 # if defined(_M_IX86) || defined(__i386__)
28 # define PEAK_AFL_CALLCONV __cdecl
29 # else
30 # define PEAK_AFL_CALLCONV
31 # endif
32 #else
33 # define PEAK_AFL_EXPORT
34 # define PEAK_AFL_CALLCONV
35 #endif
36 
37 #ifdef __cplusplus
38 # include <cstddef>
39 # include <cstdint>
40 
41 extern "C" {
42 #else
43 # include <stddef.h>
44 # include <stdint.h>
45 #endif
46 
47 
52 
53 #define PEAK_AFL_VERSION_CODE(major, minor, subminor, patch) (((major) << 24) + ((minor) << 16) + ((subminor) << 8) + (patch))
54 #define PEAK_AFL_API_STATUS PEAK_AFL_EXPORT peak_afl_status PEAK_AFL_CALLCONV
55 
87 typedef enum peak_afl_status
88 {
91 
94 
97 
100 
103 
106 
109 
112 
116 
122 {
125 
128 
131 
135 
141 {
144 
147 
151 
157 {
160 
163 
166 
169 
172 
175 
179 
185 {
188 
191 
194 
197 
201 
207 {
210 
213 
216 
219 
223 
229 {
232 
235 
237 
243 {
246 
249 
253 
259 {
262 
266 
270 typedef void(PEAK_AFL_CALLCONV* PEAK_AFL_CALLBACK_FINISHED_FUNC)(void* context);
271 
277 typedef void(PEAK_AFL_CALLCONV* PEAK_AFL_CALLBACK_PROCESSING_DATA_FUNC)(int focusValue, int sharpnessValue, void* context);
278 
284 {
288 
297 typedef struct
298 {
300  uint32_t width;
301 
303  uint32_t height;
304 } peak_afl_size;
305 
314 typedef struct
315 {
317  uint32_t x;
318 
320  uint32_t y;
322 
331 typedef struct
332 {
334  uint32_t x;
335 
337  uint32_t y;
338 
340  uint32_t width;
341 
343  uint32_t height;
345 
353 typedef struct
354 {
357 
361 
369 typedef struct
370 {
372  int min;
373 
375  int max;
377 
379 typedef uint8_t peak_afl_BOOL8;
380 
382 #define PEAK_AFL_TRUE 1
383 
385 #define PEAK_AFL_FALSE 0
386 
401 PEAK_AFL_API_STATUS peak_afl_Init(void);
402 
418 PEAK_AFL_API_STATUS peak_afl_Exit(void);
419 
441 PEAK_AFL_API_STATUS peak_afl_GetLastError(peak_afl_status* lastErrorCode, char* lastErrorMessage, size_t* lastErrorMessageSize);
442 
460 PEAK_AFL_API_STATUS peak_afl_GetVersion(
461  uint32_t* majorVersion, uint32_t* minorVersion, uint32_t* subminorVersion, uint32_t* patchVersion);
462 
477 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Create(peak_afl_manager_handle* handle, PEAK_NODE_MAP_HANDLE nodeMapHandle);
478 
491 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Destroy(peak_afl_manager_handle handle);
492 
510 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_AddController(peak_afl_manager_handle handle, peak_afl_manager_handle controller);
511 
530  peak_afl_manager_handle handle, peak_afl_manager_handle controller);
531 
548 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Process(peak_afl_manager_handle handle, PEAK_IPL_IMAGE_HANDLE imageHandle);
549 
567  peak_afl_manager_handle handle, peak_afl_controller_handle* controller, peak_afl_controllerType controllerType);
568 
582 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_DestroyAllController(peak_afl_manager_handle handle);
583 
599  peak_afl_manager_handle handle, peak_afl_controller_handle controller);
600 
614 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_SetGainIPL(peak_afl_manager_handle handle, PEAK_IPL_GAIN_HANDLE gainHandle);
615 
631 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Status(peak_afl_manager_handle handle, peak_afl_BOOL8* running);
632 
645 PEAK_AFL_API_STATUS peak_afl_AutoController_Create(
646  peak_afl_controller_handle* controller, peak_afl_controllerType controllerType);
647 
660 PEAK_AFL_API_STATUS peak_afl_AutoController_Destroy(peak_afl_controller_handle controller);
661 
675  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
676 
692 PEAK_AFL_API_STATUS peak_afl_AutoController_SkipFrames_Set(peak_afl_controller_handle controller, uint32_t count);
693 
709 PEAK_AFL_API_STATUS peak_afl_AutoController_SkipFrames_Get(peak_afl_controller_handle controller, uint32_t* count);
710 
727  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
728 
743 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
744 
760 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Set(peak_afl_controller_handle controller, peak_afl_rectangle roi);
761 
777 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Get(peak_afl_controller_handle controller, peak_afl_rectangle* roi);
778 
794  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
795 
811 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Preset_Set(peak_afl_controller_handle controller, peak_afl_roi_preset roiPreset);
812 
827 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
828 
844 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_Set(peak_afl_controller_handle controller, peak_afl_controller_automode mode);
845 
859 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_Get(peak_afl_controller_handle controller, peak_afl_controller_automode* mode);
860 
876  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
877 
895  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode mode);
896 
912  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode* mode);
913 
930  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_status* status);
931 
955 PEAK_AFL_API_STATUS peak_afl_AutoController_BrightnessComponent_Callback_Set(peak_afl_controller_handle controller,
956  peak_afl_controller_brightness_component component, peak_afl_callback_type type, void* funcPtr, void* context);
957 
972 PEAK_AFL_API_STATUS peak_afl_AutoController_Status(peak_afl_controller_handle controller, peak_afl_controller_status* status);
973 
989 PEAK_AFL_API_STATUS peak_afl_AutoController_GetLastAutoAverage(peak_afl_controller_handle controller, uint8_t* average);
990 
1009  peak_afl_controller_handle controller, uint8_t* averageRed, uint8_t* averageGreen, uint8_t* averageBlue);
1010 
1026  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1027 
1044 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTarget_Set(peak_afl_controller_handle controller, uint32_t target);
1045 
1059 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTarget_Get(peak_afl_controller_handle controller, uint32_t* target);
1060 
1080  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
1081 
1097  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1098 
1114 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTolerance_Set(peak_afl_controller_handle controller, uint32_t tolerance);
1115 
1129 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTolerance_Get(peak_afl_controller_handle controller, uint32_t* tolerance);
1130 
1150  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
1151 
1167  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1168 
1185 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoPercentile_Set(peak_afl_controller_handle controller, double percentile);
1186 
1200 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoPercentile_Get(peak_afl_controller_handle controller, double* percentile);
1201 
1221  peak_afl_controller_handle controller, double* min, double* max, double* inc);
1222 
1237 PEAK_AFL_API_STATUS peak_afl_AutoController_Type_Get(peak_afl_controller_handle controller, peak_afl_controllerType* type);
1238 
1256  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1257 
1273 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_Set(
1274  peak_afl_controller_handle controller, peak_afl_controller_algorithm algorithm);
1275 
1289 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_Get(
1290  peak_afl_controller_handle controller, peak_afl_controller_algorithm* algorithm);
1291 
1315 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_GetList(
1316  peak_afl_controller_handle controller, peak_afl_controller_algorithm* typeList, uint32_t* listSize);
1317 
1335  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1336 
1353  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm algorithm);
1354 
1369  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm* algorithm);
1370 
1394  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm* typeList, uint32_t* listSize);
1395 
1418 PEAK_AFL_API_STATUS peak_afl_AutoController_Callback_Set(
1419  peak_afl_controller_handle controller, peak_afl_callback_type type, void* funcPtr, void* context);
1420 
1436  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1437 
1451 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Min_Size(peak_afl_controller_handle controller, peak_afl_size* size);
1452 
1469 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Set(
1470  peak_afl_controller_handle controller, const peak_afl_weighted_rectangle* weightedRoiList, uint32_t listSize);
1471 
1496 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Get(
1497  peak_afl_controller_handle controller, peak_afl_weighted_rectangle* weightedRoiList, uint32_t* listSize);
1498 
1513 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1514 
1528 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Default(
1529  peak_afl_controller_handle controller, peak_afl_controller_limit* limit);
1530 
1546 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Set(peak_afl_controller_handle controller, peak_afl_controller_limit limit);
1547 
1561 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Get(peak_afl_controller_handle controller, peak_afl_controller_limit* limit);
1562 
1578  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1579 
1593 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Default(peak_afl_controller_handle controller, uint8_t* hysteresis);
1594 
1610 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Set(peak_afl_controller_handle controller, uint8_t hysteresis);
1611 
1625 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Get(peak_afl_controller_handle controller, uint8_t* hysteresis);
1626 
1643  peak_afl_controller_handle controller, uint8_t* min, uint8_t* max, uint8_t* inc);
1644 
1645 #ifdef __cplusplus
1646 } // extern "C"
1647 #endif // __cplusplus
uint32_t width
Width.
Definition: peak_afl.h:300
peak_afl_status peak_afl_GetVersion(uint32_t *majorVersion, uint32_t *minorVersion, uint32_t *subminorVersion, uint32_t *patchVersion)
Query the library version.
Controller algorithm global search.
Definition: peak_afl.h:196
peak_afl_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_status peak_afl_AutoFeatureManager_AddController(peak_afl_manager_handle handle, peak_afl_manager_handle controller)
Add a controller to an automanager instance.
Automode off.
Definition: peak_afl.h:143
peak_afl_status peak_afl_AutoController_SkipFrames_Get(peak_afl_controller_handle controller, uint32_t *count)
Get number of frames skipped for a controller.
Controller sharpness algorithm auto.
Definition: peak_afl.h:209
Controller status canceled.
Definition: peak_afl.h:174
peak_afl_status peak_afl_AutoController_SkipFrames_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if skip frames is supported for a controller.
peak_afl_controller_sharpness_algorithm
controller sharpness algorithm (focus)
Definition: peak_afl.h:206
peak_afl_status peak_afl_AutoController_AutoPercentile_GetRange(peak_afl_controller_handle controller, double *min, double *max, double *inc)
Get the auto percentile range for a controller.
peak_afl_status peak_afl_AutoController_SkipFrames_Set(peak_afl_controller_handle controller, uint32_t count)
Set number of frames skipped for a controller.
peak_afl_status peak_afl_AutoController_BrightnessComponent_Mode_Get(peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode *mode)
Get the current brightness component mode for a controller.
peak_afl_status peak_afl_AutoController_Limit_Default(peak_afl_controller_handle controller, peak_afl_controller_limit *limit)
Get the autofeature default limit.
int min
Minimum.
Definition: peak_afl.h:372
peak_afl_status peak_afl_AutoController_Algorithm_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
check if setting an algorithm is supported for a controller.
peak_afl_status peak_afl_AutoController_ROI_Get(peak_afl_controller_handle controller, peak_afl_rectangle *roi)
Get the autofeature region of interest for a controller.
peak_afl_status peak_afl_AutoController_Algorithm_Get(peak_afl_controller_handle controller, peak_afl_controller_algorithm *algorithm)
Get the used algorithm for a controller.
peak_afl_status peak_afl_AutoController_Weighted_ROI_Get(peak_afl_controller_handle controller, peak_afl_weighted_rectangle *weightedRoiList, uint32_t *listSize)
Get the autofeature weighted region of interest for a controller.
peak_afl_status peak_afl_AutoFeatureManager_Status(peak_afl_manager_handle handle, peak_afl_BOOL8 *running)
Get the status of a manager.
Library not Initialized.
Definition: peak_afl.h:96
void(* PEAK_AFL_CALLBACK_PROCESSING_DATA_FUNC)(int focusValue, int sharpnessValue, void *context)
Callback function type definition for PEAK_AFL_CONTROLLER_CALLBACK_PROCESSING_DATA.
Definition: peak_afl.h:277
uint32_t height
Height.
Definition: peak_afl.h:303
peak_afl_status
peak_afl Status codes
Definition: peak_afl.h:87
peak_afl Size (2D)
Definition: peak_afl.h:297
peak_afl_status peak_afl_AutoController_Mode_Get(peak_afl_controller_handle controller, peak_afl_controller_automode *mode)
Get the current autofeature mode for a controller.
peak_afl_rectangle roi
Roi.
Definition: peak_afl.h:356
Error.
Definition: peak_afl.h:93
Controller status busy.
Definition: peak_afl.h:171
uint32_t width
Width.
Definition: peak_afl.h:340
Controller sharpness algorithm histogram variance.
Definition: peak_afl.h:221
White balance controller.
Definition: peak_afl.h:130
peak_afl_status peak_afl_AutoController_ROI_Set(peak_afl_controller_handle controller, peak_afl_rectangle roi)
Set the autofeature region of interest for a controller.
peak_afl_status peak_afl_AutoController_Weighted_ROI_Set(peak_afl_controller_handle controller, const peak_afl_weighted_rectangle *weightedRoiList, uint32_t listSize)
Set the autofeature weighted region of interest for a controller.
peak_afl_status peak_afl_AutoController_Limit_Get(peak_afl_controller_handle controller, peak_afl_controller_limit *limit)
Get the autofeature limit for a controller.
Invalid image format.
Definition: peak_afl.h:111
peak_afl Rectangle (2D)
Definition: peak_afl.h:331
peak_afl_status peak_afl_AutoController_Callback_Set(peak_afl_controller_handle controller, peak_afl_callback_type type, void *funcPtr, void *context)
Set a callback for a controller.
peak_afl_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.
Controller algorithm hill climbing search.
Definition: peak_afl.h:193
peak_afl_status peak_afl_AutoController_Mode_Set(peak_afl_controller_handle controller, peak_afl_controller_automode mode)
Set the autofeature mode for a controller.
peak_afl Position (2D)
Definition: peak_afl.h:314
Controller sharpness algorithm mean score.
Definition: peak_afl.h:218
exposure
Definition: peak_afl.h:231
peak_afl_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.
Controller status in progress.
Definition: peak_afl.h:165
peak_afl_status peak_afl_AutoController_Type_Get(peak_afl_controller_handle controller, peak_afl_controllerType *type)
Get the controller type.
uint32_t x
X-Position.
Definition: peak_afl.h:334
peak_afl_status peak_afl_AutoController_AutoPercentile_Get(peak_afl_controller_handle controller, double *percentile)
Get the auto percentile for a controller.
peak_afl_status peak_afl_AutoController_ROI_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if setting a region of interest is supported for a controller.
peak_afl Focus Limit
Definition: peak_afl.h:369
Automode continuous.
Definition: peak_afl.h:146
Automode once.
Definition: peak_afl.h:149
peak_afl_status peak_afl_AutoController_Weighted_ROI_Min_Size(peak_afl_controller_handle controller, peak_afl_size *size)
Get the autofeature minimum size of weighted region of interest for a controller. ...
peak_afl_status peak_afl_AutoController_BrightnessComponent_Mode_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if brightness component is supported for a controller component.
peak_afl_status peak_afl_AutoFeatureManager_Destroy(peak_afl_manager_handle handle)
Destroy an automanager instance.
peak_afl_status peak_afl_AutoFeatureManager_RemoveController(peak_afl_manager_handle handle, peak_afl_manager_handle controller)
Remove a controller to an automanager instance.
peak_afl_status peak_afl_AutoController_AutoTarget_GetRange(peak_afl_controller_handle controller, uint32_t *min, uint32_t *max, uint32_t *inc)
Get the auto target range for a controller.
peak_afl_roi_preset
controller roi preset
Definition: peak_afl.h:283
peak_afl_status peak_afl_AutoController_Limit_Set(peak_afl_controller_handle controller, peak_afl_controller_limit limit)
Set the autofeature limit for a controller.
Controller roi weight middle.
Definition: peak_afl.h:248
peak_afl_controller_automode
controller automode
Definition: peak_afl.h:140
peak_afl_status peak_afl_AutoController_SkipFrames_GetRange(peak_afl_controller_handle controller, uint32_t *min, uint32_t *max, uint32_t *inc)
Get range for frames skipped for a controller.
uint8_t peak_afl_BOOL8
custom boolean type
Definition: peak_afl.h:379
peak_afl_status peak_afl_AutoFeatureManager_CreateController(peak_afl_manager_handle handle, peak_afl_controller_handle *controller, peak_afl_controllerType controllerType)
Create a controller and append it to Manager.
void * peak_afl_manager_handle
opaque manager handle type
Definition: peak_afl.h:51
Success.
Definition: peak_afl.h:90
uint32_t height
Height.
Definition: peak_afl.h:343
peak_afl_status peak_afl_AutoController_Hysteresis_GetRange(peak_afl_controller_handle controller, uint8_t *min, uint8_t *max, uint8_t *inc)
Get autofeature hysteresis range for a controller.
peak_afl_status peak_afl_AutoFeatureManager_DestroyAllController(peak_afl_manager_handle handle)
Destroy all controllers for a manager.
peak_afl_status peak_afl_AutoController_AutoTarget_Set(peak_afl_controller_handle controller, uint32_t target)
Set the auto target for a controller.
gain
Definition: peak_afl.h:234
Autofocus Controller.
Definition: peak_afl.h:133
Controller roi weight weak.
Definition: peak_afl.h:245
void(* PEAK_AFL_CALLBACK_FINISHED_FUNC)(void *context)
Callback function type definition for PEAK_AFL_CONTROLLER_CALLBACK_FINISHED.
Definition: peak_afl.h:270
Controller status off.
Definition: peak_afl.h:162
peak_afl_status peak_afl_Init(void)
Init the peak_afl auto feature library.
peak_afl_roi_weight weight
Weight.
Definition: peak_afl.h:359
peak_afl_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_status peak_afl_AutoController_GetLastAutoAverage(peak_afl_controller_handle controller, uint8_t *average)
Get the last auto average for a controller.
peak_afl_controller_algorithm
controller algorithm
Definition: peak_afl.h:184
uint32_t y
Y-Position.
Definition: peak_afl.h:337
int max
Maximum.
Definition: peak_afl.h:375
Not supported.
Definition: peak_afl.h:114
peak_afl_status peak_afl_Exit(void)
Exit the peak_afl auto feature library.
peak_afl_status peak_afl_AutoController_AutoTolerance_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
check if auto tolerance is supported for a controller.
peak_afl_status peak_afl_AutoController_ROI_Preset_Set(peak_afl_controller_handle controller, peak_afl_roi_preset roiPreset)
Set the autofeature region of interest preset for a controller.
peak_afl_status peak_afl_AutoController_ROI_Preset_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if ROI preset is supported for a controller.
Controller callback type processing data.
Definition: peak_afl.h:264
uint32_t y
Y-Position.
Definition: peak_afl.h:320
peak_afl_status peak_afl_AutoController_AutoTarget_Get(peak_afl_controller_handle controller, uint32_t *target)
Get the currently set auto target for a controller.
peak_afl_status peak_afl_AutoController_Destroy(peak_afl_controller_handle controller)
Destroy a controller. Will fail if it is queued inside a manager.
peak_afl_roi_weight
controller roi weight (focus)
Definition: peak_afl.h:242
controller roi preset center
Definition: peak_afl.h:286
peak_afl_status peak_afl_AutoFeatureManager_Create(peak_afl_manager_handle *handle, PEAK_NODE_MAP_HANDLE nodeMapHandle)
Create an automanager instance.
peak_afl_status peak_afl_AutoController_AutoTarget_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
check if auto target is supported for a controller.
peak_afl_status peak_afl_AutoController_Algorithm_Set(peak_afl_controller_handle controller, peak_afl_controller_algorithm algorithm)
Set the used algorithm for a controller.
Controller roi weight strong.
Definition: peak_afl.h:251
peak_afl_status peak_afl_AutoController_AutoPercentile_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
check if auto percentile is supported for a controller.
Controller algorithm full scan.
Definition: peak_afl.h:199
Access Denied.
Definition: peak_afl.h:102
peak_afl_status peak_afl_AutoController_Limit_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if limit is supported for a controller.
uint32_t x
X-Position.
Definition: peak_afl.h:317
peak_afl_status peak_afl_AutoController_Status(peak_afl_controller_handle controller, peak_afl_controller_status *status)
Get the status for a controller.
Buffer too small.
Definition: peak_afl.h:108
peak_afl_status peak_afl_AutoFeatureManager_SetGainIPL(peak_afl_manager_handle handle, PEAK_IPL_GAIN_HANDLE gainHandle)
Set the IPL Gain.
peak_afl_status peak_afl_AutoController_Hysteresis_Default(peak_afl_controller_handle controller, uint8_t *hysteresis)
Get the autofeature hysteresis default.
peak_afl_status peak_afl_AutoController_AutoTolerance_Set(peak_afl_controller_handle controller, uint32_t tolerance)
Set the auto tolerance for a controller.
Controller algorithm golden ratio search.
Definition: peak_afl.h:190
peak_afl Focus Rectangle
Definition: peak_afl.h:353
peak_afl_status peak_afl_AutoController_BrightnessComponent_Callback_Set(peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_callback_type type, void *funcPtr, void *context)
Set a callback for a controller component.
Exposure controller.
Definition: peak_afl.h:127
peak_afl_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.
peak_afl_status peak_afl_AutoController_BrightnessComponent_Status(peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_status *status)
Get the status for a controller component.
Controller status error.
Definition: peak_afl.h:177
peak_afl_status peak_afl_AutoController_AutoTolerance_Get(peak_afl_controller_handle controller, uint32_t *tolerance)
Get the current auto tolerance for a controller.
Invalid Parameter.
Definition: peak_afl.h:99
Controller status undefined.
Definition: peak_afl.h:159
peak_afl_status peak_afl_AutoController_Weighted_ROI_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if weighted region of interest is supported for a controller.
peak_afl_status peak_afl_AutoController_Create(peak_afl_controller_handle *controller, peak_afl_controllerType controllerType)
Create a new controller.
peak_afl_status peak_afl_AutoController_BrightnessComponent_Mode_Set(peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode mode)
Set the autofeature mode for a brightness component.
peak_afl_controller_status
controller status
Definition: peak_afl.h:156
peak_afl_status peak_afl_AutoFeatureManager_Process(peak_afl_manager_handle handle, PEAK_IPL_IMAGE_HANDLE imageHandle)
Process an image.
Controller algorithm auto.
Definition: peak_afl.h:187
peak_afl_status peak_afl_AutoController_Hysteresis_Get(peak_afl_controller_handle controller, uint8_t *hysteresis)
Get the autofeature hysteresis for a controller.
Busy.
Definition: peak_afl.h:105
Controller status finished.
Definition: peak_afl.h:168
Controller sharpness algorithm sobel.
Definition: peak_afl.h:215
peak_afl_status peak_afl_AutoController_AutoTolerance_GetRange(peak_afl_controller_handle controller, uint32_t *min, uint32_t *max, uint32_t *inc)
Get the auto tolerance range for a controller.
void * peak_afl_controller_handle
opaque controller handle type
Definition: peak_afl.h:49
peak_afl_status peak_afl_GetLastError(peak_afl_status *lastErrorCode, char *lastErrorMessage, size_t *lastErrorMessageSize)
Get the last error message.
peak_afl_status peak_afl_AutoController_Algorithm_GetList(peak_afl_controller_handle controller, peak_afl_controller_algorithm *typeList, uint32_t *listSize)
Get the list of supported algorithms for a controller.
peak_afl_status peak_afl_AutoController_Hysteresis_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if hysteresis is supported for a controller.
peak_afl_controllerType
controller types
Definition: peak_afl.h:121
peak_afl_status peak_afl_AutoController_Mode_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if auto mode is supported for a controller.
peak_afl_controller_brightness_component
controller brightness component
Definition: peak_afl.h:228
Controller callback type finished.
Definition: peak_afl.h:261
Invalid controller.
Definition: peak_afl.h:124
Controller sharpness algorithm tenengrad.
Definition: peak_afl.h:212
peak_afl_status peak_afl_AutoController_AutoPercentile_Set(peak_afl_controller_handle controller, double percentile)
Set the auto percentile for a controller.
peak_afl_status peak_afl_AutoController_Hysteresis_Set(peak_afl_controller_handle controller, uint8_t hysteresis)
Set the autofeature hysteresis for a controller.
peak_afl_callback_type
controller callback type
Definition: peak_afl.h:258
peak_afl_status peak_afl_AutoFeatureManager_DestroyController(peak_afl_manager_handle handle, peak_afl_controller_handle controller)
Destroy a controller.