![]() |
IDS peak AFL v2.0.0
|
Analysis area configuration for automatic control operations. More...
Functions | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_ROI_IsSupported (peak_afl_controller_handle controller, peak_afl_BOOL8 *supported) |
| Check if region of interest (ROI) feature is supported for a controller. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_ROI_Set (peak_afl_controller_handle controller, peak_afl_rectangle roi) |
| Set the region of interest for automatic feature processing. | |
| PEAK_AFL_API_STATUS | peak_afl_AutoController_ROI_Get (peak_afl_controller_handle controller, peak_afl_rectangle *roi) |
| Get the current region of interest for a controller. | |
Analysis area configuration for automatic control operations.
If a smaller part of the image should be processed, a region of interest (ROI) can be set. The ROI allows focusing the auto feature analysis on specific areas while ignoring irrelevant parts of the image.
| PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Get | ( | peak_afl_controller_handle | controller, |
| peak_afl_rectangle * | roi ) |
Get the current region of interest for a controller.
Retrieves the current region of interest (ROI) configuration for the specified controller. The ROI defines the rectangular area of the image where the controller performs its analysis. If no ROI has been set, the returned rectangle will have all values set to 0, indicating that the controller processes the entire image.
| [in] | controller | Controller handle to query for ROI configuration |
| [out] | roi | Pointer to receive the current region of interest rectangle. If no ROI is set, all rectangle values (x, y, width, height) will be 0. Coordinates are relative to the image dimensions. |
| PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_IsSupported | ( | peak_afl_controller_handle | controller, |
| peak_afl_BOOL8 * | supported ) |
Check if region of interest (ROI) feature is supported for a controller.
Determines whether the specified controller supports the region of interest feature. ROI allows controllers to focus their analysis on specific rectangular areas of the image rather than processing the entire image. This can improve performance and accuracy by excluding irrelevant areas from automatic feature processing. Not all controller types support ROI functionality, and support may vary based on the specific implementation.
| [in] | controller | Controller handle to check for ROI support |
| [out] | supported | Pointer to receive support status:
|
| PEAK_AFL_API_STATUS peak_afl_AutoController_ROI_Set | ( | peak_afl_controller_handle | controller, |
| peak_afl_rectangle | roi ) |
Set the region of interest for automatic feature processing.
Configures a rectangular region of interest (ROI) that limits the area of the image where the controller performs its analysis. This allows focusing automatic features on specific parts of the image, which can improve performance and accuracy by excluding irrelevant areas from processing. If no ROI is set, the controller evaluates the complete image.
| [in] | controller | Controller handle for which to set the ROI |
| [in] | roi | Rectangle defining the region of interest with coordinates relative to the image. To reset/disable ROI, set all values to 0. The rectangle should be within the image boundaries. |