124 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
GenICam function API
Control Gamma using GenICam API.
Gamma
Use ‘IFloat’ interface to control Gamma.
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// Gamma = 0.45
float64_t dGamma = 0.45;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “Gamma”, &hNode);
// Set Gamma Value
Nd_SetFloatValue(s_hCam, hNode, dGamma);
Please refer to [INode functions] and [IFloat node functions] in [TeliCamAPI Library manual] for more
detail.
Register access API
Control Gamma by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
Gamma
Write to ‘Value’ field of ‘Gamma’ register.
// Gamma = 0.45 (Raw value = 45)
uint32_t uiGammaRaw = 45;
// Set Gamma Value
Cam_WriteReg(s_hCam, 0x20409C, 1, &uiGammaRaw);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum/Maximum Value
Gain
Raw Value
Absolute (Float) Value
Minimum
45
0.45
Maximum
100
1.00
Initial Value
100
1.00
Formula
Absolute Value = Raw Value / 100