final sigmoid version of ocean scene

Scenes with a high dynamic range can be challenging to work with - either you risk blowing the highlights or the shadows are way too dark. Let's learn how to compress a high dynamic range scene in darktable using both filmic rgb and sigmoid to compare how each of these tone mapping modules works.

Filmic RGB

final improved version of the ocean scene using filmic rgb
original image of the ocean scene

The first step in the filmic rgb version is to increase the exposure using the exposure module:

filmic rgb version's exposure module

Next we need to use tone equalizer to brighten the very dark shadows under the trees. Note that the mask shows the image shifted to the right - this is intentional so we can access all parts of the shadows, even the very dark parts:

filmic rgb version's tone equalizer module

We can now use color balance rgb to increase saturation:

filmic rgb version's color balance rgb module

Finally, enable filmic rgb and set white relative exposure to recover the highlights, especially the clouds:

filmic rgb reconstruct tab

You'll then need to use both the reconstruct tab as well as the highlight reconstruction module to recover the brightest highlights:

filmic rgb's reconstruct tab:

filmic rgb reconstruct tab

highlight reconstruction module:

filmic rgb version's highlight reconstruction module

Notice how we had to decrease the clipping threshold in order to cover all of the very bright clouds.

Finally, play with the color science and preserve chrominance values on filmic rgb's options tab to find the best version of colors in the highlights:

filmic rgb options tab

With all of these changes, we've reduced the dynamic range significantly such that even the shadows under the trees and the bright white clouds are all visible on the screen (or print media).

Sigmoid

final improved version of the ocean scene using sigmoid
original image of the ocean scene

Similarly, the first step in the sigmoid version is to increase the exposure using the exposure module:

sigmoid version's exposure module

Next, we need to use tone equalizer to brighten the very dark shadows:

sigmoid version's tone equalizer module

At this point, the steps for sigmoid diverge as we need to use a second instance of tone equalizer to pull down the brightness of the highlights (since sigmoid doesn't have an equivalent of filmic rgb's white relative exposure). Contrasting with the first instance of tone equalizer, notice how the mask in this version greatly reduces the exposure so that all of the pixels fit well within the mask range (and even leave some headroom on the brightest EV) - this allows us to reduce the brightness of all of the highlights:

sigmoid version's tone equalizer module for highlights

Next, enable sigmoid and make any adjustments if needed:

sigmoid module

Finally, use color balance rgb to increase saturation:

sigmoid module's color balance rgb module

Comparison

final improved version of the ocean scene using sigmoid
final improved version of the ocean scene using filmic rgb

You be the judge of which version you like better (left is filmic rgb and right is sigmoid). It's worth noting that additional refinement could be done to bring these versions even closer, such as a second instance of tone equalizer on the filmic rgb instance to bring down exposure of the brightest parts of sand. Interestingly, I think the filmic rgb version probably looks more accurate to how my eyes would see the scene (with that sand in the middle appearing really bright and hard to see details in it), whereas the sigmoid version gives us more control to pull down that part of the highlights and keep more detail.

In general, I prefer filmic rgb for scenes that involve the sky and clouds as the white relative exposure seems to do a great job of recovering the highlights, setting appropriate saturation in the highlights, and gently transitioning the curve to pure white:

filmic rgb highlights curve

I tend to prefer sigmoid for scenes that don't involve the sky, or where I'd like to easily add a lot of contrast. We are fortunate to have both of these tone mapping modules in darktable to provide multiple ways of working with a wide variety of scenes.


Support Us and Access The XMP File

If you found this article helpful, please subscribe to our newsletter or support us on Patreon and get access to bonus features including the RAW file and XMP used in this article!

Questions? Comments?

Do you have questions or comments about this article? Please contact us via Mastodon or Email - we want to hear from you!