IDS peak AFL  v1.3.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 
115 
116  /* Value adjusted */
117  PEAK_AFL_STATUS_VALUE_ADJUSTED = 9
119 
125 {
128 
131 
134 
138 
144 {
147 
150 
154 
160 {
163 
166 
169 
172 
175 
178 
182 
188 {
191 
194 
197 
200 
204 
210 {
213 
216 
219 
222 
226 
232 {
235 
238 
240 
246 {
249 
252 
256 
262 {
265 
269 
273 typedef void(PEAK_AFL_CALLCONV* PEAK_AFL_CALLBACK_FINISHED_FUNC)(void* context);
274 
280 typedef void(PEAK_AFL_CALLCONV* PEAK_AFL_CALLBACK_PROCESSING_DATA_FUNC)(int focusValue, int sharpnessValue, void* context);
281 
287 {
291 
300 typedef struct
301 {
303  uint32_t width;
304 
306  uint32_t height;
307 } peak_afl_size;
308 
317 typedef struct
318 {
320  uint32_t x;
321 
323  uint32_t y;
325 
334 typedef struct
335 {
337  uint32_t x;
338 
340  uint32_t y;
341 
343  uint32_t width;
344 
346  uint32_t height;
348 
356 typedef struct
357 {
360 
364 
372 typedef struct
373 {
375  int min;
376 
378  int max;
380 
388 typedef struct
389 {
391  double min;
393  double max;
395 
397 typedef uint8_t peak_afl_BOOL8;
398 
400 #define PEAK_AFL_TRUE 1
401 
403 #define PEAK_AFL_FALSE 0
404 
419 PEAK_AFL_API_STATUS peak_afl_Init(void);
420 
436 PEAK_AFL_API_STATUS peak_afl_Exit(void);
437 
459 PEAK_AFL_API_STATUS peak_afl_GetLastError(peak_afl_status* lastErrorCode, char* lastErrorMessage, size_t* lastErrorMessageSize);
460 
478 PEAK_AFL_API_STATUS peak_afl_GetVersion(
479  uint32_t* majorVersion, uint32_t* minorVersion, uint32_t* subminorVersion, uint32_t* patchVersion);
480 
495 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Create(peak_afl_manager_handle* handle, PEAK_NODE_MAP_HANDLE nodeMapHandle);
496 
509 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Destroy(peak_afl_manager_handle handle);
510 
528 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_AddController(peak_afl_manager_handle handle, peak_afl_manager_handle controller);
529 
548  peak_afl_manager_handle handle, peak_afl_manager_handle controller);
549 
566 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Process(peak_afl_manager_handle handle, PEAK_IPL_IMAGE_HANDLE imageHandle);
567 
585  peak_afl_manager_handle handle, peak_afl_controller_handle* controller, peak_afl_controllerType controllerType);
586 
600 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_DestroyAllController(peak_afl_manager_handle handle);
601 
617  peak_afl_manager_handle handle, peak_afl_controller_handle controller);
618 
632 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_SetGainIPL(peak_afl_manager_handle handle, PEAK_IPL_GAIN_HANDLE gainHandle);
633 
649 PEAK_AFL_API_STATUS peak_afl_AutoFeatureManager_Status(peak_afl_manager_handle handle, peak_afl_BOOL8* running);
650 
663 PEAK_AFL_API_STATUS peak_afl_AutoController_Create(
664  peak_afl_controller_handle* controller, peak_afl_controllerType controllerType);
665 
678 PEAK_AFL_API_STATUS peak_afl_AutoController_Destroy(peak_afl_controller_handle controller);
679 
693  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
694 
710 PEAK_AFL_API_STATUS peak_afl_AutoController_SkipFrames_Set(peak_afl_controller_handle controller, uint32_t count);
711 
727 PEAK_AFL_API_STATUS peak_afl_AutoController_SkipFrames_Get(peak_afl_controller_handle controller, uint32_t* count);
728 
745  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
746 
761 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
762 
778 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Set(peak_afl_controller_handle controller, peak_afl_rectangle roi);
779 
795 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Get(peak_afl_controller_handle controller, peak_afl_rectangle* roi);
796 
812  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
813 
829 PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Preset_Set(peak_afl_controller_handle controller, peak_afl_roi_preset roiPreset);
830 
845 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
846 
862 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_Set(peak_afl_controller_handle controller, peak_afl_controller_automode mode);
863 
877 PEAK_AFL_API_STATUS peak_afl_AutoController_Mode_Get(peak_afl_controller_handle controller, peak_afl_controller_automode* mode);
878 
894  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
895 
913  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode mode);
914 
930  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_automode* mode);
931 
948  peak_afl_controller_handle controller, peak_afl_controller_brightness_component component, peak_afl_controller_status* status);
949 
973 PEAK_AFL_API_STATUS peak_afl_AutoController_BrightnessComponent_Callback_Set(peak_afl_controller_handle controller,
974  peak_afl_controller_brightness_component component, peak_afl_callback_type type, void* funcPtr, void* context);
975 
990 PEAK_AFL_API_STATUS peak_afl_AutoController_Status(peak_afl_controller_handle controller, peak_afl_controller_status* status);
991 
1007 PEAK_AFL_API_STATUS peak_afl_AutoController_GetLastAutoAverage(peak_afl_controller_handle controller, uint8_t* average);
1008 
1027  peak_afl_controller_handle controller, uint8_t* averageRed, uint8_t* averageGreen, uint8_t* averageBlue);
1028 
1044  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1045 
1062 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTarget_Set(peak_afl_controller_handle controller, uint32_t target);
1063 
1077 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTarget_Get(peak_afl_controller_handle controller, uint32_t* target);
1078 
1098  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
1099 
1115  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1116 
1132 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTolerance_Set(peak_afl_controller_handle controller, uint32_t tolerance);
1133 
1147 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoTolerance_Get(peak_afl_controller_handle controller, uint32_t* tolerance);
1148 
1168  peak_afl_controller_handle controller, uint32_t* min, uint32_t* max, uint32_t* inc);
1169 
1185  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1186 
1203 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoPercentile_Set(peak_afl_controller_handle controller, double percentile);
1204 
1218 PEAK_AFL_API_STATUS peak_afl_AutoController_AutoPercentile_Get(peak_afl_controller_handle controller, double* percentile);
1219 
1239  peak_afl_controller_handle controller, double* min, double* max, double* inc);
1240 
1255 PEAK_AFL_API_STATUS peak_afl_AutoController_Type_Get(peak_afl_controller_handle controller, peak_afl_controllerType* type);
1256 
1274  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1275 
1291 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_Set(
1292  peak_afl_controller_handle controller, peak_afl_controller_algorithm algorithm);
1293 
1307 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_Get(
1308  peak_afl_controller_handle controller, peak_afl_controller_algorithm* algorithm);
1309 
1333 PEAK_AFL_API_STATUS peak_afl_AutoController_Algorithm_GetList(
1334  peak_afl_controller_handle controller, peak_afl_controller_algorithm* typeList, uint32_t* listSize);
1335 
1353  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1354 
1371  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm algorithm);
1372 
1387  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm* algorithm);
1388 
1412  peak_afl_controller_handle controller, peak_afl_controller_sharpness_algorithm* typeList, uint32_t* listSize);
1413 
1436 PEAK_AFL_API_STATUS peak_afl_AutoController_Callback_Set(
1437  peak_afl_controller_handle controller, peak_afl_callback_type type, void* funcPtr, void* context);
1438 
1454  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1455 
1469 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Min_Size(peak_afl_controller_handle controller, peak_afl_size* size);
1470 
1487 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Set(
1488  peak_afl_controller_handle controller, const peak_afl_weighted_rectangle* weightedRoiList, uint32_t listSize);
1489 
1514 PEAK_AFL_API_STATUS peak_afl_AutoController_Weighted_ROI_Get(
1515  peak_afl_controller_handle controller, peak_afl_weighted_rectangle* weightedRoiList, uint32_t* listSize);
1516 
1531 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1532 
1546 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Default(
1547  peak_afl_controller_handle controller, peak_afl_controller_limit* limit);
1548 
1564 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Set(peak_afl_controller_handle controller, peak_afl_controller_limit limit);
1565 
1579 PEAK_AFL_API_STATUS peak_afl_AutoController_Limit_Get(peak_afl_controller_handle controller, peak_afl_controller_limit* limit);
1580 
1596  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1597 
1611 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Default(peak_afl_controller_handle controller, uint8_t* hysteresis);
1612 
1628 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Set(peak_afl_controller_handle controller, uint8_t hysteresis);
1629 
1643 PEAK_AFL_API_STATUS peak_afl_AutoController_Hysteresis_Get(peak_afl_controller_handle controller, uint8_t* hysteresis);
1644 
1661  peak_afl_controller_handle controller, uint8_t* min, uint8_t* max, uint8_t* inc);
1662 
1678  peak_afl_controller_handle controller, peak_afl_BOOL8* supported);
1679 
1701 PEAK_AFL_API_STATUS peak_afl_AutoController_GainLimit_Set(peak_afl_controller_handle controller, peak_afl_double_limit limit);
1702 
1716 PEAK_AFL_API_STATUS peak_afl_AutoController_GainLimit_Get(peak_afl_controller_handle controller, peak_afl_double_limit* limit);
1717 
1731 PEAK_AFL_API_STATUS peak_afl_AutoController_GainLimit_GetRange(peak_afl_controller_handle controller, peak_afl_double_limit* limit);
1732 
1733 #ifdef __cplusplus
1734 } // extern "C"
1735 #endif // __cplusplus
uint32_t width
Width.
Definition: peak_afl.h:303
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:199
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 auto manager instance.
double min
Minimum.
Definition: peak_afl.h:391
peak_afl_status peak_afl_AutoController_GainLimit_IsSupported(peak_afl_controller_handle controller, peak_afl_BOOL8 *supported)
Check if gain limit is supported for a controller.
Automode off.
Definition: peak_afl.h:146
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:212
Controller status canceled.
Definition: peak_afl.h:177
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:209
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:375
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:280
uint32_t height
Height.
Definition: peak_afl.h:306
peak_afl_status
peak_afl Status codes
Definition: peak_afl.h:87
peak_afl Size (2D)
Definition: peak_afl.h:300
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:359
Error.
Definition: peak_afl.h:93
Controller status busy.
Definition: peak_afl.h:174
uint32_t width
Width.
Definition: peak_afl.h:343
Controller sharpness algorithm histogram variance.
Definition: peak_afl.h:224
White balance controller.
Definition: peak_afl.h:133
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:334
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:196
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:317
Controller sharpness algorithm mean score.
Definition: peak_afl.h:221
exposure
Definition: peak_afl.h:234
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:168
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:337
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:372
Automode continuous.
Definition: peak_afl.h:149
Automode once.
Definition: peak_afl.h:152
peak_afl_status peak_afl_AutoController_Weighted_ROI_Min_Size(peak_afl_controller_handle controller, peak_afl_size *size)
Get the autofeature minimum size for the 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 mode 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:286
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:251
peak_afl_controller_automode
controller automode
Definition: peak_afl.h:143
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:397
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
peak_afl_status peak_afl_AutoController_GainLimit_GetRange(peak_afl_controller_handle controller, peak_afl_double_limit *limit)
Get autofeature gain limit range for a controller.
uint32_t height
Height.
Definition: peak_afl.h:346
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:237
Autofocus Controller.
Definition: peak_afl.h:136
Controller roi weight weak.
Definition: peak_afl.h:248
void(* PEAK_AFL_CALLBACK_FINISHED_FUNC)(void *context)
Callback function type definition for PEAK_AFL_CONTROLLER_CALLBACK_FINISHED.
Definition: peak_afl.h:273
Controller status off.
Definition: peak_afl.h:165
peak_afl_status peak_afl_Init(void)
Init the peak_afl auto feature library.
peak_afl_roi_weight weight
Weight.
Definition: peak_afl.h:362
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:187
uint32_t y
Y-Position.
Definition: peak_afl.h:340
int max
Maximum.
Definition: peak_afl.h:378
Not supported.
Definition: peak_afl.h:114
peak_afl_status peak_afl_Exit(void)
Exit the peak_afl auto feature library.
double max
Maximum.
Definition: peak_afl.h:393
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:267
uint32_t y
Y-Position.
Definition: peak_afl.h:323
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:245
peak_afl_status peak_afl_AutoController_GainLimit_Get(peak_afl_controller_handle controller, peak_afl_double_limit *limit)
Get autofeature gain limit for a controller.
controller roi preset center
Definition: peak_afl.h:289
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_GainLimit_Set(peak_afl_controller_handle controller, peak_afl_double_limit limit)
Set autofeature gain limit for a controller.
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:254
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:202
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:320
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 Double Limit
Definition: peak_afl.h:388
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:193
peak_afl Focus Rectangle
Definition: peak_afl.h:356
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:130
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:180
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:162
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:159
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:190
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:171
Controller sharpness algorithm sobel.
Definition: peak_afl.h:218
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:124
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:231
Controller callback type finished.
Definition: peak_afl.h:264
Invalid controller.
Definition: peak_afl.h:127
Controller sharpness algorithm tenengrad.
Definition: peak_afl.h:215
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:261
peak_afl_status peak_afl_AutoFeatureManager_DestroyController(peak_afl_manager_handle handle, peak_afl_controller_handle controller)
Destroy a controller.