67 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
● Control with TeliCamSDK
Camera feature API
Control PixelFormat using dedicated API.
API name
Description
GetCamPixelFormat
Get current PixelFormat value
SetCamPixelFormat
Set new PixelFormat value
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control PixelFormat using GenICam API.
PixelCoding/PixelSize
To determine PixelFormat combination of ‘PixelCoding‘ and ‘PixelSize‘ register.
1. Select a pixel coding. (‘PixelCoding’).
Integer value and string value of Enumeration are as follows.
Integer
String
0
Mono
96
BayerGR
99
BayerRG
102
BayerGB
105
BayerBG
2. Select a bit size of image pixel (‘PixelSize’).
Integer value and string value of Enumeration are as follows.
Integer
String
8
Bpp8
10
Bpp10
12
Bpp12
// GenICam node handle
CAM_NODE_HANDLE hCoding = NULL;
CAM_NODE_HANDLE hSize = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, "PixelCoding", &hCoding);
Nd_GetNode(s_hCam, "PixelSize", &hSize);
// 1.Select a pixel coding.
Nd_SetEnumStrValue(s_hCam, hCoding, "Mono");
// 2.Select a pixel size.
Nd_SetEnumStrValue(s_hCam, hSize, "Bpp10");