IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Querying the current setting of the automatic exposure in the host.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
// Get the current exposure auto mode
peak_auto_feature_mode mode = PEAK_AUTO_FEATURE_MODE_INVALID;
status = peak_IPL_AutoBrightness_Exposure_Mode_Get(hCam, &mode);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
switch (mode)
{
case PEAK_AUTO_FEATURE_MODE_OFF:
// Exposure auto is disabled
break;
case PEAK_AUTO_FEATURE_MODE_ONCE:
// Exposure auto is in "once" mode and switches to "off" when converged
break;
case PEAK_AUTO_FEATURE_MODE_CONTINUOUS:
// Exposure auto is continuously enabled
break;
default:
// Acquiring exposure auto mode failed
break;
}
|
Setting the mode for automatic exposure in the host.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
// Disable exposure auto
status = peak_IPL_AutoBrightness_Exposure_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_OFF);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Enable exposure auto once, until it has converged
status = peak_IPL_AutoBrightness_Exposure_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_ONCE);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Continuously enable exposure auto
status = peak_IPL_AutoBrightness_Exposure_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_CONTINUOUS);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
|
Querying and setting brightness parameters and ROI
The brightness parameters and the image region for the control apply together to auto exposure and auto gain of the IDS peak IPL. See Brightness parameters in IDS peak IPL (comfortSDK).