IDS peak comfortC  v1.3.0
ROI (Region Of Interest)

Functions

peak_access_status peak_ROI_GetAccessStatus (peak_camera_handle hCam)
 Query the ROI access status. More...
 
peak_status peak_ROI_Offset_GetRange (peak_camera_handle hCam, peak_position *minROIOffset, peak_position *maxROIOffset, peak_position *incROIOffset)
 Get the current range of valid ROI offsets. More...
 
peak_status peak_ROI_Size_GetRange (peak_camera_handle hCam, peak_size *minROISize, peak_size *maxROISize, peak_size *incROISize)
 Get the current range of valid ROI sizes. More...
 
peak_status peak_ROI_Set (peak_camera_handle hCam, peak_roi roi)
 Set the ROI. More...
 
peak_status peak_ROI_Get (peak_camera_handle hCam, peak_roi *roi)
 Get the ROI. More...
 

Detailed Description

ROI (Region Of Interest) related functions and types.

Function Documentation

◆ peak_ROI_Get()

peak_status peak_ROI_Get ( peak_camera_handle  hCam,
peak_roi *  roi 
)

Get the ROI.

Reads the current image ROI.

Parameters
[in]hCamThe camera handle.
[out]roiThe ROI.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The ROI feature is not available for read access. Check the access status via peak_ROI_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER roi is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_ROI_GetAccessStatus()

peak_access_status peak_ROI_GetAccessStatus ( peak_camera_handle  hCam)

Query the ROI access status.

Provides the current access status for the ROI feature.

This function implements the Access Status Query principle.

Parameters
[in]hCamThe camera handle.
Returns
PEAK_ACCESS_READWRITE The ROI feature is readable and writeable.
PEAK_ACCESS_READONLY The ROI feature is readable only.
PEAK_ACCESS_GFA_LOCK The ROI feature is not accessible because the GFA write access is enabled.
PEAK_ACCESS_NONE The ROI feature is not accessible.
PEAK_ACCESS_NOT_SUPPORTED The ROI feature is not supported.
PEAK_ACCESS_INVALID The function failed. Call peak_Library_GetLastError to get the error code and description.

If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:

◆ peak_ROI_Offset_GetRange()

peak_status peak_ROI_Offset_GetRange ( peak_camera_handle  hCam,
peak_position *  minROIOffset,
peak_position *  maxROIOffset,
peak_position *  incROIOffset 
)

Get the current range of valid ROI offsets.

Queries the current range of valid values for the ROI offset.

The range of valid ROI offset values may depend on the camera configuration and the camera status.
In special the current setting of the ROI size has an impact on the range of valid ROI offset values.

Parameters
[in]hCamThe camera handle.
[out]minROIOffsetThe minimum ROI offset values.
[out]maxROIOffsetThe maximum ROI offset values.
[out]incROIOffsetThe ROI offset values increments.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The ROI feature is not accessible. Check the access status via peak_ROI_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER At least one of minROIOffset, maxROIOffset, and incROIOffset is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_ROI_Set()

peak_status peak_ROI_Set ( peak_camera_handle  hCam,
peak_roi  roi 
)

Set the ROI.

Writes the desired image ROI.

Parameters
[in]hCamThe camera handle.
[in]roiThe ROI to set.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_OUT_OF_RANGE roi is out of range. Check the range of valid values via peak_ROI_Offset_GetRange and peak_ROI_Size_GetRange.
PEAK_STATUS_ACCESS_DENIED The ROI feature is not available for write access. Check the access status via peak_ROI_GetAccessStatus.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.

◆ peak_ROI_Size_GetRange()

peak_status peak_ROI_Size_GetRange ( peak_camera_handle  hCam,
peak_size *  minROISize,
peak_size *  maxROISize,
peak_size *  incROISize 
)

Get the current range of valid ROI sizes.

Queries the current range of valid values for the ROI dimensions.

The range of valid ROI size values may depend on the camera configuration and the camera status.
In special the current setting of the ROI offset has an impact on the range of valid ROI size values.

Parameters
[in]hCamThe camera handle.
[out]minROISizeThe minimum ROI size values.
[out]maxROISizeThe maximum ROI size values.
[out]incROISizeThe ROI size values increments.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_ACCESS_DENIED The ROI feature is not accessible. Check the access status via peak_ROI_GetAccessStatus.
PEAK_STATUS_INVALID_PARAMETER At least one of minROISize, maxROISize, and incROISize is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hCam is an invalid camera handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.