138 / 179
Copyright © 2017 TOSHIBA TELI CORPORATION, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4267042B
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
Masking
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.50
0.15
G
-0.50
-0.35
B
0.10
-0.65
● Note
ColorCorrectionMatrix control is available in following PixelFormat.
Bayer8/10/12(BayerProcessingMode = Full), RGB8, BGR8, YUV411, YUV422