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 ganin in the host.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
// Get the current gain auto mode
peak_auto_feature_mode mode = PEAK_AUTO_FEATURE_MODE_INVALID;
status = peak_IPL_AutoBrightness_Gain_Mode_Get(hCam, &mode);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
switch (mode)
{
case PEAK_AUTO_FEATURE_MODE_OFF:
// Gain auto is disabled
break;
case PEAK_AUTO_FEATURE_MODE_ONCE:
// Gain auto is in "once" mode and switches to "off" when converged
break;
case PEAK_AUTO_FEATURE_MODE_CONTINUOUS:
// Gain auto is continuously enabled
break;
default:
// Acquiring gain auto mode failed
break;
}
|
Setting the mode for automatic gain in the host.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
// Disable gain auto
status = peak_IPL_AutoBrightness_Gain_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_OFF);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Enable gain auto once, until it has converged
status = peak_IPL_AutoBrightness_Gain_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_ONCE);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Continuously enable gain auto
status = peak_IPL_AutoBrightness_Gain_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).