Hi,

I'm interested in writing an automatic white balance module or preset
for darktable, similar to rawtherapee's AWB mode. Briefly spoken, it
allows one to set a bias value for warmer / cooler tones and
calculates the color temperature using all pixels in the image (like
using the spot preset with a 100% area for the color picker).

So far I kind of understand darktable's module interface, but I don't
understand how the color picker works. To my understanding, the color
picker can only function when in GUI mode? I.e. it needs mouse focus,
calling the color picker module in the background will crash
darktable.

Another thing I couldn't figure out was how the spot preset works
exactly. A comment says, that the coefficients are filled in the
"expose" callback, which, I guess, refers the X11 Expose event, but I
can't find the callback in the source code...

So, for a working module or preset I need some information:

1) How can I get all the necessary information / color values from the
picture (color picker?)?
2) How does the algorithm for calculating the white balance using a
bias look like?

Thank you very much,

  Jochen
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to