46 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
● Control with TeliCamSDK
Camera feature API
Control Scalable using dedicated API.
API name
Description
GetCamSensorWidth
Get effective width of the sensor in pixels
GetCamSensorHeight
Get effective height of the sensor in pixels
GetCamRoi
Get ROI (Region of Interest) of the camera
SetCamRoi
Set ROI (Region of Interest) to the camera
GetCamWidthMinMax
Get minimum and maximum value
GetCamWidth
Get width of image
SetCamWidth
Set width of image
GetCamHeightMinMax
Get minimum and maximum value
GetCamHeight
Get height of image
SetCamHeight
Set height of image
GetCamOffsetXMinMax
Get minimum and maximum value
GetCamOffsetX
Get horizontal offset of image
SetCamOffsetX
Set horizontal offset of image
GetCamOffsetYMinMax
Get minimum and maximum value
GetCamOffsetY
Get vertical offset of image
SetCamOffsetY
Set vertical offset of image
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control Scalable using GenICam API.
Scalable
// GenICam node handle
CAM_NODE_HANDLE hWidth = NULL;
CAM_NODE_HANDLE hHeight = NULL;
CAM_NODE_HANDLE hOffsetX = NULL;
CAM_NODE_HANDLE hOffsetY = NULL;
// ROI = {OffsetX, Width, OffsetY, Height};
uint64_t ROI[] = {612,1224, 512,1024};
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “Width”, &hWidth);
Nd_GetNode(s_hCam, “Height”, &hHeight);
Nd_GetNode(s_hCam, “OffsetX”, &hOffsetX);
Nd_GetNode(s_hCam, “OffsetY”, &hOffsetY);
// Set ROI
Nd_SetIntValue(s_hCam, hWidth, ROI[1]);
Nd_SetIntValue(s_hCam, hOffsetX, ROI[0]);
Nd_SetIntValue(s_hCam, hHeight, ROI[3]);
Nd_SetIntValue(s_hCam, hOffsetY, ROI[2]);