darktable article lede image
color correction

color correction

this is one of the oldest modules in darktable. it appeared to me that it probably lacks an example to discover how useful it can be … so here goes the example.

this started off to be a wrapper around the gegl:whitebalance operation, which works in Lab color space and is able to give dark and bright colors a different color tint, interpolating between the two for mid tones.

so suppose you have the following image:

2012-03-11-170029_1920x1080_scrot

and want to adjust white balance for the highlights and the shadows separately. you can do that by pulling the box inside the color panel around:

2012-03-11-170059_1920x1080_scrot

with the box open, you’ll notice that two edges are dark, and two are light. these define the color shift for shadows and highlights, respectively. in the example above, i pulled highlights towards red, and the shadows towards blue. play around with them, to get a better feel for it:

2012-03-11-170139_1920x1080_scrot

you can also use the mouse wheel to adjust saturation:

2012-03-11-170333_1920x1080_scrot

and finally, to give you a real-world example, so you don’t discard this module as b-movie relevant only. the following is an image which has a double-whitebalance situation. the dark rocks in the foreground have a bluish tint, whereas i like the warm tones of the cliff and the sky in the background.

2012-03-11-173857_1920x1080_scrot

by leaving the light edges where they were, and just dragging the dark edges a bit up towards yellow, you can achieve the following (screen capture with active snapshot, to make the comparison more obvious. left: after, right: before).

2012-03-11-174014_1920x1080_scrot

note how the sky and the hill on the left hardly changed at all, while the rock in the foreground now nicely blends into the warm white balance of the bright parts.

sidenote: this also works for black and white images, to tint your image after monochrome conversion.

Filed under: Blog Tutorial
These are comments from the old website, archived as static HTML
  1. I'm not sure what you mean by dark/light edges ...
    Now you say it, I can see that down and left edges appear to be a bit darker than up and right, but I've always thought it was a little perspective thing.
  2. Also, I see on the last screenshot that the separation between active/former version can be moved. Is that new? Is it possible to make the separation horizontal?
  3. Two times: yes. Both in upcoming version 1.0.

    The separator can be moved towards the sides and rotated by 90 degree (and then moved up and down...)
  4. It would be nice to run darktable in smaller resolution for screenshots, like 1024x768, so that button labels remain readable.
  5. After a year and a half of using darktable, I finally learned what this box in color correction is about. I thought it was to define the average tint, and always kept it small. Never noticed that it works for bitonal correction.

    An interface with two separate draggable markers (let say a black and a white disc) may be more intuitive and discoverable... As it is, only two edge intersections are significant (dark-dark and light-light), right?
  6. Im current running darktable in 1024x600 res on my netbook,
    you have two parameters to change, first you need to lower the fontsize in darktable.gtkrc and then the panel width to something like 220...

    /Henrik
  7. I like this plug especially in combination with blend-if to colorize blown-out air.
    If very usefull.
  8. Thank you for Darktasble and these tutorials. \o/

    Can you do a tutorial about HDR in Darktable ?
  9. I second this. I never noticed the light/dark line difference.
  10. Especially on the Tonemapping part.

    I never get good results with this.
  11. To Henrik,

    I mean, it would be nice to run darktable in low resolution when making screenshots for a blog post. 1980x1080 is too big for a screenshot, all labels become too small when downscaled.
  12. toujours pas vraiment compris. peut-on comprendre que le polygone que l'on dessine à l'intérieur du plugin (exemple : image 2) " représente " la photo (son cadre, ses côtés).
    Donc :
    le bas-gauche de l'image sera dans le bleu donc 6 ou 7000 K
    le bas-droit sera dans le rose-rouge donc 3 ou 4000 K ?
  13. Non, ce n'est pas ça.
    Deux des côtés du rectangle concernent les couleurs sombres, et les deux autres les couleurs claires. On peut donc ainsi renforcer le caractère froid des ombres et réchauffer les couleurs lumineuses ... ou l'inverse.
  14. I still did not understand how work of plugin.

    Screencast ?
  15. In git master we have a reworked UI for color correction now. maybe you want to check this out and tell us if this is more intuitive/comprehensible for you.
  16. I second Railroad. I too could not make out how to make use of this plugin in real world scenario. I was trying to give some tint to the overblown sky and whatever I do, it would give tint to the rest of the picture too along with the sky.
  17. you could use our _very_ powerful "blend if" feature, this is an perfect use case. See the blog posts here:
    http://www.darktable.org/2012/03/upcoming-features-conditional-blending/
    and
    http://www.darktable.org/2012/07/some-enhancements-to-conditional-blending/
    Both is currently only available in the git build development version.
  18. I just installed the git version and can confirm that the new version of this plugin is much more intuitive: you have two little bullets, one white the other black, you just have to draw on the color you want to apply.