123 / 177
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
https://www.toshiba-teli.co.jp/en/
DAA00195C
GenICam function API
Control BlackLevel using GenICam API.
BlackLevel
Use ‘IFloat’ interface to control BlackLevel.
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// BlackLevel = 25%
float64_t dBlackLevel = 25.0;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “BlackLevel”, &hNode);
// Set BlackLevel Value
Nd_SetFloatValue(s_hCam, hNode, dBlackLevel);
Please refer to [INode functions] and [IFloat node functions] in [TeliCamAPI Library manual] for more
detail.
Register access API
Control BlackLevel by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
BlackLevel
Write to ‘Value’ field of ‘BlackLevel’ register.
// BlackLevel = 25% (Raw value = 256)
int32_t iBlackLevelRaw = 256; // signed
// Set BlackLevel Value
Cam_WriteReg(s_hCam, 0x20405C, 1, &iBlackLevelRaw);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum/Maximum Value
Gain
Raw Value
Absolute (Float) Value
Minimum
-256
-25.00[%]
Maximum
256
+25.00[%]
Initial Value
0
0.00[%]
Formula
Absolute Value [%] = Raw Value * 100 / 1024