IDSpeakAFL  v1.1.0
Automanager

Functions

peak_afl_status peak_afl_AutoFeatureManager_Create (peak_afl_manager_handle *handle, PEAK_NODE_MAP_HANDLE nodeMapHandle)
 Create an automanager instance. More...
 
peak_afl_status peak_afl_AutoFeatureManager_Destroy (peak_afl_manager_handle handle)
 Destroy an automanager instance. More...
 
peak_afl_status peak_afl_AutoFeatureManager_AddController (peak_afl_manager_handle handle, peak_afl_manager_handle controller)
 Add a controller to an automanager instance. More...
 
peak_afl_status peak_afl_AutoFeatureManager_RemoveController (peak_afl_manager_handle handle, peak_afl_manager_handle controller)
 Remove a controller to an automanager instance. More...
 
peak_afl_status peak_afl_AutoFeatureManager_Process (peak_afl_manager_handle handle, PEAK_IPL_IMAGE_HANDLE imageHandle)
 Process an image. More...
 
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. More...
 
peak_afl_status peak_afl_AutoFeatureManager_DestroyAllController (peak_afl_manager_handle handle)
 Destroy all controllers for a manager. More...
 
peak_afl_status peak_afl_AutoFeatureManager_DestroyController (peak_afl_manager_handle handle, peak_afl_controller_handle controller)
 Destroy a controller. More...
 
peak_afl_status peak_afl_AutoFeatureManager_Status (peak_afl_manager_handle handle, peak_afl_BOOL8 *running)
 Get the status of a manager. More...
 

Detailed Description

Definitions on Automanager and values.

Function Documentation

◆ peak_afl_AutoFeatureManager_AddController()

peak_afl_status peak_afl_AutoFeatureManager_AddController ( peak_afl_manager_handle  handle,
peak_afl_manager_handle  controller 
)

Add a controller to an automanager instance.

An autocontroller instance can only be added to one autofeature manager at the same time. The same type can only be added one time. To create an instance call peak_afl_AutoController_Create or call the convenience function peak_afl_AutoFeatureManager_CreateController.

Parameters
[in]handleautofeature handle
[in]controllercontroller handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_Create()

peak_afl_status peak_afl_AutoFeatureManager_Create ( peak_afl_manager_handle *  handle,
PEAK_NODE_MAP_HANDLE  nodeMapHandle 
)

Create an automanager instance.

Creates an automanager instance. The PEAK_NODE_MAP_HANDLE can be acquired by calling Handle() from std::shared_ptr<peak::core::NodeMap>

Parameters
[out]handlepointer to an autofeature handle
[in]nodeMapHandlea handle to the device nodemap
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_CreateController()

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.

Convenience function to create an autofeature controller and add it to the manager. The same type can only be added one time.

Parameters
[in]handlemanager handle
[out]controllercontroller handle
[in]controllerTypecontroller type, see peak_afl_controllerType
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_Destroy()

peak_afl_status peak_afl_AutoFeatureManager_Destroy ( peak_afl_manager_handle  handle)

Destroy an automanager instance.

If the functions succeeds the handle is invalid.

Parameters
[in]handleautofeature handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_INVALID_PARAMETER The library is not initialized.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_DestroyAllController()

peak_afl_status peak_afl_AutoFeatureManager_DestroyAllController ( peak_afl_manager_handle  handle)

Destroy all controllers for a manager.

After this operation all controller handles associated with the given manager will be invalid.

Parameters
[in]handlecontroller handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_DestroyController()

peak_afl_status peak_afl_AutoFeatureManager_DestroyController ( peak_afl_manager_handle  handle,
peak_afl_controller_handle  controller 
)

Destroy a controller.

After this operation the controller handle will be invalid.

Parameters
[in]handlemanager handle
[in]controllercontroller handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_Process()

peak_afl_status peak_afl_AutoFeatureManager_Process ( peak_afl_manager_handle  handle,
PEAK_IPL_IMAGE_HANDLE  imageHandle 
)

Process an image.

Processes an image. To get the handle for the image, call ImageBackendAccessor::BackendHandle(img) with img being a peak::ipl::Image

Parameters
[in]handleautofeature handle
[in]imageHandleimage handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_INVALID_IMAGE_FORMAT The image format is not supported
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_RemoveController()

peak_afl_status peak_afl_AutoFeatureManager_RemoveController ( peak_afl_manager_handle  handle,
peak_afl_manager_handle  controller 
)

Remove a controller to an automanager instance.

Remove a controller from a manager. To destroy the controller object, call peak_afl_AutoController_Destroy afterwards. Or peak_afl_AutoFeatureManager_AddController to add it to another manager. For a function which destroys the object in one call, see peak_afl_AutoFeatureManager_DestroyController.

Parameters
[in]handleautofeature handle
[in]controllercontroller handle
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.

◆ peak_afl_AutoFeatureManager_Status()

peak_afl_status peak_afl_AutoFeatureManager_Status ( peak_afl_manager_handle  handle,
peak_afl_BOOL8 *  running 
)

Get the status of a manager.

The parameter /p running will contain whether the manager currently processes an image (PEAK_AFL_TRUE) or is idle (PEAK_AFL_FALSE).

Parameters
[in]handlemanager handle
[out]runningmanager status
Returns
PEAK_AFL_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_AFL_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_AFL_STATUS_INVALID_PARAMETER The argument is invalid.
PEAK_AFL_STATUS_ERROR An unexpected internal error occurred.