Hello!
I've used Adobe Lightroom together with XRite Passport plugin to get appropriate White Balance of my images.
After applying WB in Lightroom Temp is +11 and Tint is +91 (before it was 0,0).
Thing is how can this be applied in TI’s pipeline?
White balance matrix that I got in the code right now is set to: static int wb_table_def[] = {512,512,512,512,0,0,0,0};
which is being passed to the IPIPE driver with updateIpipeParam(wb_table_def, rgb1_table_def, rgb2_table_def) together with rgb2rgb matrices and here is how it is being used:
wb.gain_r.integer = U4_9_INT(wb_table[0]);
wb.gain_r.decimal = U4_9_DEC(wb_table[0]);
wb.gain_gr.integer = U4_9_INT(wb_table[1]);
wb.gain_gr.decimal = U4_9_DEC(wb_table[1]);
wb.gain_gb.integer = U4_9_INT(wb_table[2]);
wb.gain_gb.decimal = U4_9_DEC(wb_table[2]);
wb.gain_b.integer = U4_9_INT(wb_table[3]);
wb.gain_b.decimal = U4_9_DEC(wb_table[3]);
wb.ofst_r = wb_table[4];
wb.ofst_gr = wb_table[5];
wb.ofst_gb = wb_table[6];
wb.ofst_b = wb_table[7];
So, how should Temp and Tint be used to populate wb_table_def?
Thanks,
Teo