130 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
BalanceWhiteAuto
Select ‘BalanceWhiteAuto’ mode by IEnumeration interface.
Integer value and string value of Enumeration are as follows.
Integer
String
1
Off
3
Once
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “BalanceWhiteAuto”, &hNode);
// Set BalanceWhiteAuto = “Continuous”
Nd_SetEnumStrValue(s_hCam, hNode, “Continuous”);
Please refer to [INode functions], [IEnumeration node functions] and [IFloat node functions] in
[TeliCamAPI Library manual] for more detail.
Register access API
Control BalanceRatio and BalanceWhiteAuto by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
BalanceRatio
Write to ‘Value’ field of ‘WhiteBalanceR’ or ‘WhiteBalanceB’ register.
// WhiteBalance R Gain = x 1 (Raw value = 65536)
// WhiteBalance B Gain = x 1 (Raw value = 65536)
uint32_t uiWhiteBalanceRRaw = 65536;
uint32_t uiWhiteBalanceBRaw = 65536;
// Set WhiteBalance Gain Value
Cam_WriteReg(s_hCam, 0x20507C, 1, &uiWhiteBalanceRRaw);
Cam_WriteReg(s_hCam, 0x20509C, 1, &uiWhiteBalanceBRaw);
BalanceRatioAuto
Write to ‘Control’ field of ‘WhiteBalanceR’ or ‘WhiteBalanceB’ register.
// BalanceWhiteAuto = “Once”
uint32_t uiBalanceWhiteAuto = 3;
// Set BalanceWhiteAuto = “Once”
Cam_WriteReg(s_hCam, 0x205068, 1, &uiBalanceWhiteAuto);
// Cam_WriteReg(s_hCam, 0x205088, 1, &uiBalanceWhiteAuto); // either will do
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.