Print out white balance coefficients

Hi,

Is there a way to print out the final white balance coefficients that are applied to the RAW right before "dcraw_process()"?

Thanks,

Mio

Forums: 

WB selection logic is in

WB selection logic is in scale_colors() (this call will print multipliers if compiled with DCRAW_VERBOSE defined.
You may copy-paste this logic to your own call, or, if you do not use all possible ways to set WB coeffs, you may simplify it.

-- Alex Tutubalin

Hi,

Hi,

If I set "use_auto_wb" to 1, how can I retrieve the final set of white balance coefficients that is calculated by "libraw"? also, if I use "greybox" method to calculate the white balance coefficients, is there a variable through which I can get the final values?

Thanks a lot,

Mio

imgdata.color.pre_mul[]

imgdata.color.pre_mul[] coeffs, but only after dcraw_process()

-- Alex Tutubalin