136 / 177
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
https://www.toshiba-teli.co.jp/en/
DAA00195C
Please refer to [INode functions], [IEnumeration node functions] and [IFloat node functions] in
[TeliCamAPI Library manual] for more detail.
Register access API
Control ColorCorrectionMatrix by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
ColorCorrectionMatrix
Write to ‘Value’ field of ‘MaskingRG’, ‘MaskingRB’, ‘MaskingGR’, ‘MaskingGB’, ‘MaskingBR’,
‘MaskingBG’ register.
// Masking value (Raw value)
int32_t uiMasking[] = {-13108, 13107,-19661,-26215, -6554,-32768};
// Set Masking Value
uint64_t addr = 0x21F05C;
for(int i=0; i<6; i++, addr+= 0x20)
{
Cam_WriteReg(s_hCam, addr, 1, &uiMasking[i]);
}
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum/Maximum Value
BalanceRatio
Raw Value
Absolute (Float) Value
Minimum
-65536
-1.00
Maximum
65535
0.99
Formula
Absolute Value = Raw Value / 65536
Initial Value
SelectorJ
R
G
B
SelectorI
R
0.00 0.00
G
0.00
0.00
B
0.00 0.00
● Note
ColorCorrectionMatrix control is available in following PixelFormat.
Bayer8/10/12(BayerProcessingMode = Full), RGB8, BGR8, YUV411, YUV422