Clarity in darktable

@jorismak Try some dramatic shift in the contrast fulcrum in CB and play with contrast…sometimes you can hit it right and you can drive it in just the right place. Also subtract blend mode at a very low opacity say 5-15 % can have almost like a dehazing effect…I have not tried it on snow but on light outdoor pictures around water it bring a nice effect. I have gone as high as 25% but rarely and after that it will just get dark… I often apply it with just a strait tone curve or maybe a small tweak to the curve…

I set up a parametric mask as you describe and then apply a tone curve, pulling it down to increase contrast in the highlights. It works pretty well as long as I’m not too aggressive with it.

Actually, increasing the local contrast in new darktable is very simple. You have to make use of the blend modes. Especially good for this is multiply reverse blend mode.

Here is an example. This is the scene I just photographed from my window:

After white balance and exposure compensation it looks like this:

Actually already very nice, but the details in the snow are missing. These areas look very flat.

In filmic I compress the shadows and highlights a bit more to have more room in highlights. Since this reduces contrast, I reduce latitude and increase contrast in the “look” tab. This is what the photo looks like afterwards:

Now the photo is ready to increase the local contrast. For this I will use local contrast module with multiply reverse blend mode. First I choose the RGB (scene) option in the blending options tab:

LC4

Then I take multiply reverse as blend mode and in the module itself play with the sliders detail and midtone range and in blending options with blend fulcrum and opacity. This is how the result looks like:

The advantage of using these blend mode is that the increase of the local contrast is accompanied by a matching increase of the contrast itself - in that multiply reverse blend mode darkens the highlights to the extent that they are shifted in the direction of the midgray - which looks much more pleasant than the increase of the local contrast alone. This comes pretty close to what some call “clarity”.

If this makes the photo too dark, you can increase the blend fulcrum, which will overexpose the highlights…

…but you can get them back quickly with the help of tone equalizer:

Difference before - after is quite clear:

16 Likes

Thanks for this tip.
Two questions:

  1. do you move the local contrast module before filmic in order to work with linear rgb unbounded data?
  2. any way to reduce the color cast on the snow in the final image?

No. This is not necessary. Everything that comes before the filmic serves for me rather as preparation (the basis) for the perceptive adjustment that comes afterwards. This way I make sure that I have enough space to shape the photo the way I want it to be. Local contrast is part of this perceptual adjustment for me that comes after filmic.

In this case however - although the processing takes place in the perceptual stage - I have “misused” the blend mode that belong to the linear part of the processing, simply because it gives nice results.

There are a lot of ways you can do this in the darktable.

Interestingly, in this particular example, there are no color shifts. The scene was indeed like this. The front part of the trees and the deck chairs are illuminated by the reflection of the sunlight from the orange house wall in front of them and the snow in shadow area is illuminated by the blue sky.
It is this play of colors that makes the scene so interesting to me!

But to answer your question, here I can use two instances of the color calibration module for this - one for blue snow in shadow (with appropriate parametric mask) and one for orange snow (of course also with appropriate mask):

You can also use various other modules for this - color balance, color zone, color look up table and so on.

The simplest version would be to mask the snow and desaturate it, since it has no color itself.

3 Likes

Very good explanation.
I would like to comment that maybe you need to readjust "filmic or “tone equalizer” after local_contrast. I usually check that I didn’t burn some areas when I apply it.

I always try to arrive to filmic with low contrast in the scene (some margin in black and whites) and a bit lighter in the middle tones, because with local_contrast and multiply_reverse blending mode I darken a little bit the picture.

Yes, I sometimes even correct the exposure afterwards. That’s the nice thing about pixelpipe, that you can still adjust the values in modules nicely afterwards.

1 Like

As Boris said there are many ways to deal with the cast…Two quick ways that I try is the hue autopicker for highlights in the colorbalance module. Often it nails it as it adds the opposing hue but you can adjust the saturation of the hue it selects to add to or more likely reduce the effect. Also in things like snow or skin color zones again with an auto picker…this time in the saturation tab and doing a shift drag to draw the range will auto desaturate based on your selection…both of these are quick and often don’t need any masking…

I am still somewhat of a newbie, and the blend mode seems to be discussed in terms of the local contrast module. But, in dt 3.4.1, the only blend modes I see are “local laplacian filter” and “bilateral grid”. How do I access these multiply blend modes?

You have to first use the hamburger to select RGB (scene referred).
I found that out today.

1 Like

Well, thank you, but I still get only the two modes I mentioned, above.

They aren’t blend modes.
You have to click on the normal mode (circle) button, to get blend modes.

1 Like

No, these are not blend modes. what you are referring to are two different algorithms that can be selected to increase local contrast. This has nothing to do with blend modes. Blend modes (for all modules) appear when you click on the white circle at the bottom of the module, and other symbols for masks.

Screenshot_2021-02-10 Clarity in darktable

and then on the right there is a list of modes. look at the screenshot where it says “multiply reverse”.

2 Likes

Got it. Thanks very much.

LC10

Can you further clarify when it might be better to use multiply mode vs multiply reverse and why?

No, that was trial and error. Sometimes both modes behave the same sometimes not. I can’t say why unfortunately. For the same purpose you can also use multiply.

Got it. I’m trying to at least hunt down some documentation for those modes, but the manual doesn’t include them unfortunately.

Here you have a topic where it is explain how it works.Editing moments with darktable post195…

Hey Boris,

for clarity you can use the blend mode subtract with 1-2%. The best is to use it with the contrast equalizer for fine tuning but a rgb curve works fine too.

4 Likes