Toshiba teli BU040M Instruction Manual page 136

Cmos camera
Table of Contents

Advertisement

GenICam function API
Control ColorCorrectionMatrix using GenICam API.
 ColorCorrectionMatrix
1. Select a row element of color correction matrix by '
Select a column element of color correction matrix by '
Integer value and string value of Enumeration are as follows.
The correspondence of '
correction matrix element is as follows.
2. Set a coefficient of color correction matrix by 'ColorCorrectionMatrix'.
// GenICam node handle
CAM_NODE_HANDLE hSelectorI = NULL;
CAM_NODE_HANDLE hSelectorJ = NULL;
CAM_NODE_HANDLE hNode = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, "ColorCorrectionMatrixSelectorI", &hSelectorI);
Nd_GetNode(s_hCam, "ColorCorrectionMatrixSelectorJ", &hSelectorJ);
Nd_GetNode(s_hCam, "ColorCorrectionMatrix", &hNode);
float64_t
for(int64_t i=0; i<3; i++)
{
for(int64_t j=0; j<3; j++)
{
if(i != j)
{
// 1.Select a color correction matrix element
Nd_SetEnumIntValue(s_hCam, hSelectorI, i);
Nd_SetEnumIntValue(s_hCam, hSelectorJ, j);
// 2.Set a coefficient of color correction matrix.
Nd_SetFloatValue(s_hCam, hNode, dCoefficient);
}
}
}
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
Integer
0
1
2
ColorCorrectionMatrixSelectorI
Corresponding elements of color correction matrix
dCoefficient[] = { 0.0,-0.2, 0.2,
-0.3,0.0,-0.4,
-0.1,-0.5,0.0 };
135 / 177
ColorCorrectionMatrixSelectorI
ColorCorrectionMatrixSelectorJ
String
R
G
B
' and '
ColorCorrectionMatrixSelectorJ
// 3x3 matrix
https://www.toshiba-teli.co.jp/en/
'.
'.
' to color
DAA00195C

Advertisement

Table of Contents
loading

Table of Contents