132 / 179
Copyright © 2017 TOSHIBA TELI CORPORATION, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4267042B
● Control with TeliCamSDK
Camera feature API
Control BalanceRatio and BalanceWhiteAuto using dedicated API.
API name
Description
GetCamBalanceRatioMinMax
Get minimum and maximum value
GetCamBalanceRatio
Get current BalanceRatio value
SetCamBalanceRatio
Set new BalanceRatio value
GetCamBalanceWhiteAuto
Get current BalanceWhiteAuto mode
SetCamBalanceWhiteAuto
Set new BalanceWhiteAuto mode
BalanceWhiteAuto parameter
Description
CAM_BALANCE_WHITE_AUTO_OFF
Off
CAM_BALANCE_WHITE_AUTO_ONCE
Adjust once
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control BalanceRatio and BalanceWhiteAuto using GenICam API.
BalanceRatio
1. Select a color component of white balance gain to control by
‘BalanceRatioSelector’.
Integer value and string value of Enumeration are as follows.
Integer
String
1
Red
2
Blue
2. Set a white balance gain by
‘BalanceRatio’.
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// 1.Select a color component
// Retrieve GenICam node.
Nd_GetNode(s_hCam,
“BalanceRatioSelector”, &hNode);
// Select
“Red”
Nd_SetEnumStrValue(s_hCam, hNode,
“Red”);
// 2.Set a white balance gain
// white balance R gain = x 1.0
float64_t dBalanceRatioR = 1.0;
// Retrieve GenICam node.
Nd_GetNode(s_hCam,
“BalanceRatio”, &hNode);
// Set Gain Value
Nd_SetFloatValue(s_hCam, hNode, dBalanceRatioR);