I have merge the branch “autowb”
This branch contains a new automatic white balance process.
I named it “Itcwb” - Iterative temperature correlation white balance"
It’s a totaly new process, not based on grey, but on color.
Sommary, this new process, compare 20 to 50 color in the image, with 20 to 50 colors predefined among 200 (spectral datas between 350nm and 830nm).
The comparison is made in xyY, on the one hand from the colors of the image to which I apply the principles which change the RGB values as a function of T, and on the other hand to the spectral values of the among (200) colors to which the mathematical principles are applied (for each pixel : matrix color, matrix illuminant, matrix standard observer)
This comparison is made first for green / magenta then for red blue, by optimizing a student corellation.
For this to work, the illuminant must be with a CRI (Color Rendering Index) close to 100 (Daylight, blackbody)
I maintained the old “WB auto” (grey) for compatibility reasons and for cases where “Itcwb” cannot work, for example underwater
jacques