IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Querying the auto exposure (ExposureAuto) of the camera.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
peak_access_status accessStatus = peak_AutoBrightness_Exposure_GetAccessStatus(hCam);
if (PEAK_IS_READABLE(accessStatus))
{
// Get the current exposure auto mode
peak_auto_feature_mode mode = PEAK_AUTO_FEATURE_MODE_INVALID;
status = peak_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;
}
}
|
genericC++
|
// Get current ExposureAuto mode in the camera
std::string exposureAuto = m_nodemapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ExposureAuto")->CurrentEntry()->SymbolicValue();
if ("Off" == exposureAuto)
{
// Exposure auto is disabled
}
else if ("Once" == exposureAuto)
{
// Exposure auto is in "once" mode and switches to "off" when converged
}
else if ("Continuous" == exposureAuto)
{
// Exposure auto is continuously enabled
}
|
Setting the auto exposure (ExposureAuto) of the camera.
comfortC
|
peak_status status = PEAK_STATUS_SUCCESS;
peak_access_status accessStatus = peak_AutoBrightness_Exposure_GetAccessStatus(hCam);
if (PEAK_IS_WRITEABLE(accessStatus))
{
// Disable exposure auto
status = peak_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_AutoBrightness_Exposure_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_ONCE);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
// Continuously enable exposure auto
status = peak_AutoBrightness_Exposure_Mode_Set(hCam, PEAK_AUTO_FEATURE_MODE_CONTINUOUS);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
}
|
genericC++
|
// Disable ExposureAuto
m_nodemapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ExposureAuto")->SetCurrentEntry("Off");
// Enable exposure auto once, until it has converged
m_nodemapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ExposureAuto")->SetCurrentEntry("Once");
// Continuously enable exposure auto
m_nodemapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ExposureAuto")->SetCurrentEntry("Continuous");
|
ExposureAuto: Querying and setting brightness parameters and ROI
The brightness parameters (BrightnessAutoPercentile, BrightnessAutoTarget, BrightnessAutoTargetTolerance) and the image area for control apply jointly to auto exposure and auto gain. See Brightness parameters (for auto exposure and auto gain).