Please enable JavaScript to view this site.

IDS peak 2.10.0 / uEye+ firmware 3.34

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 white balance.

genericC++

auto balanceWhiteAutoMode = m_autoFeaturesManager.GetBalanceWhiteAutoMode();

Setting the automatic white balance.

genericC++

// Disable BalanceWhiteAuto mode
m_autoFeaturesManager.SetBalanceWhiteAutoMode(AutoFeaturesManager::BalanceWhiteAutoMode::Off);
 
// Enable one time BalanceWhiteAuto mode
m_autoFeaturesManager.SetBalanceWhiteAutoMode(AutoFeaturesManager::BalanceWhiteAutoMode::Once);
 
// Enable continuous BalanceWhiteAuto mode
m_autoFeaturesManager.SetBalanceWhiteAutoMode(AutoFeaturesManager::BalanceWhiteAutoMode::Continuous);

Querying if the automatic white balance control has been completed (e.g. after activation of a “Once” control).

genericC++

bool finished = m_autoFeaturesManager.IsBalanceWhiteAutoFinished();

Querying which gain is used for white balance control.

genericC++

auto gainType = m_autoFeaturesManager.GetGainTypeColor();

Querying if the camera supports color gain control via the AutoFeaturesManager.

genericC++

bool balanceWhiteAutoSupported = AutoFeaturesManager::GainType::None != m_autoFeaturesManager.GetGainTypeColor();

Automatic white balance: querying and setting a ROI

The image region for the white balance can be queried or set as follows.

genericC++

size_t x;
size_t y;
size_t width;
size_t height;
 
m_autoFeaturesManager.GetBalanceWhiteAutoRoi(x, y, width, height);
 
m_autoFeaturesManager.SetBalanceWhiteAutoRoi(x, y, width, height);

© 2024 IDS Imaging Development Systems GmbH