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