55 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
GenICam function API
Control Decimation using GenICam API.
Decimation
// GenICam node handle
CAM_NODE_HANDLE hDecimation = NULL;
// Decimation = 2x2
uint64_t Decimation = 2;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “DecimationHorizontal”, &hDecimation);
// Nd_GetNode(s_hCam, “DecimationVertical”, &hDecimation); // either will do
// Set Decimation
Nd_SetIntValue(s_hCam, hDecimation, Decimation);
Please refer to [INode functions], [IInteger node functions] in [TeliCamAPI Library manual] for more
detail.
Register access API
Control Decimation by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
Decimation
Write to ‘Value’ field of ‘DecimationHorizontal’ register to control DecimationHorizontal.
Or write to ‘Value’ field of ‘DecimationVertical’ register to control DecimationVertical.
// Decimation = 2x2
uint32_t Decimation = 2;
// Set Decimation
Cam_WriteReg(s_hCam, 0x20213C, 1, &Decimation);
// Cam_WriteReg(s_hCam, 0x20215C, 1, &Decimation); // either will do
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
● Note
- Decimation is disabled when the camera is running in Binning mode.
- Changing ‘DecimationHorizontal’, ‘DecimationVertical’ register value is invalid during image stream data
output.
- Decimation Horizontal / Vertical = 3 is not available.