142 / 177
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
https://www.toshiba-teli.co.jp/en/
DAA00195C
● Control with TeliCamSDK
Camera feature API
Control LUT using dedicated API.
API name
Description
GetCamLUTEnable
Get activation status
SetCamLUTEnable
Set activation status
GetCamLUTValue
Get LUT value
SetCamLUTValue
Set LUT value
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control LUT using GenICam API.
LUT
1. Set the input level of LUT to ‘LUTIndex’.
2. Set the output level of LUT to ‘LUTValue’
3. Set the activation of LUT function by ‘LUTEnable’
// GenICam node handle
CAM_NODE_HANDLE hIndex = NULL;
CAM_NODE_HANDLE hValue = NULL;
CAM_NODE_HANDLE hEnable = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “LUTIndex”, &hIndex);
Nd_GetNode(s_hCam, “LUTValue”, &hValue);
Nd_GetNode(s_hCam, “LUTEnable”, &hEnable);
for(int64_t i=0; i<4096; i++)
{
// 1.Set the input level of LUT to 'LUTIndex'.
Nd_SetIntValue(s_hCam, hIndex, i);
// 2.Set the output level of LUT to 'LUTValue'
Nd_SetIntValue(s_hCam, hValue, 4095 - i); // invert
}
//
3.Set the activation of LUT function by 'LUTEnable'
Nd_SetBoolValue(s_hCam, hEnable, true);
Please refer to [INode functions], [IInteger node functions] and [IBoolean node functions] in [TeliCamAPI
Library manual] for more detail.