Evaluate the new sigmoid tone mapper just merged into master ...

Yes filmic is essentially applying two curves, one is logarithmic (dynamic range), the other s shaped (contrast). I was talking about making the s shaped curve flat. The way one would if you were combining filmic with base curve.

1 Like

That’s probably not the best idea. Since local contrast only works with Lab and display-referred data, it’ll essentially act as the tone-mapper (by simply truncating out-of-gamut data, I suspect) and the actual tone-mapper (filmic or sigmoid) will not get the kind of data they expect (RGB, scene-referred).

Screenshot_2022-11-04_11-59-15

Screenshot_2022-11-04_12-17-33

That’s a good point, in fact, the Darktables manual has a note about this.

filmic rgb tends to compress local contrast, so after you have finished adjusting settings here, you may wish to compensate for this using the local contrast module.

I personally apply a local contrast preset that someone post in this forum, and for these cases the results are great, both for filmic and sigmoid.
(sigmoid just need to push the values a bit further)

Captura desde 2022-11-04 13-27-28

2 Likes

That’ll be me :slight_smile:

2 Likes

One thing that needs to be remembered is that blanket assertions about what filmic does vs what it does not do as compared to sigmoidal need to include experimentation with the range of settings… The nice thing is that sigmoidal is pretty simple… and the options are in one panel. You have only two color pres modes and only one has a slider so you can pick between this or that and dial one in. Then tweak skew and contrast… Most of these settings with the exception of changing the preservation mode don’t dramatically impact what is going on in the image wrt color and the initial “look”… However with filmic you also have the safe soft and hard shoulders , you can have zero latitude or no linear part for the curve , this part when linear can be shifted and the big one is the color preservation modes and even extending this to using v5 with its set of controls over saturation vs v6… So when discussing it we also need to be clear what settings are in play. I know that they are in the xmp for those that include it but again I could configure filmic in one way and someone else another and the results will be substantially different and we could both be calling them “filmic”… I think this maybe outlines the strength and weakness of filmic… Sigmoid gives an initial look and then you basically push and pull that a bit whereas filmic with its various buttons and knobs can yield quite dramatically different results…

The example above of the child’s face is a good one… The result provided for “filmic” for that cheek would be very different depending on the preservation mode or if v5 was used and the latitude size position and midtone saturation were used… and some of these changes might be the defaults for other users and define “their” filmic look.

I guess my point is a good comparison for sure is to start with the current defaults for both. Then optimize both and finally assess the result and how hard it might have been to match or exceed things with one or the other under a variety of situations.

I think there is a lot to learn from others as to how they edit these images so it would be nice to keep them coming

2 Likes

Meanwhile, I’ve tried two of the images where I had trouble with filmic:

sigmoid handled those rather well; with filmic v6, I had to switch to Luminance Y as the chroma preservation setting.

(sigmoid defaults)

(slight tweaking)

6 Likes

Nice…this mad me think of two things…one did you try the new HLR and filmic v6 still had to change chrom preservation??

Two many of the recent issues with the blue highlight etc were the interaction with filmic and the until recently default HLR mode of clipped highlights…

If you doing a retrospective edit sigmoid being new might start with the new defaults and so it may not be apples to apples… so just confirm… for those not following the HLR issues… clip highlights is big contributor to that blue with the math in the newer v6 filmic…new inpaint method is much better in that respect…

A blown out sunset, I think the preserve hue slider is really the way to go for handling these color reconstruction issue ; one side is too yellow, the other one two salmon, but there’s a sweet spot in between that would hard to reach with only discrete options.

3 Likes

Toggling luminanceY I’m not bothered with with filmic. Depending on the scene , i decide if highlights to white or to be colorful is what I want

In filmic that means switching between max-rgb and luminanceY. With sigmoid , that means toggling between two modes .

With some more testing on playraws, i do notice that filmic can have a bit more of an issue (often) where there is a crossover between bright spots unclipped , and bright spots reconstructed highlights.
Sigmoid does this smoother , which can hide some details but fixes the need to fix the crossover point.

Maybe i dont notice this in my own shots as much , because i didn’t clip , OR (because I’m not perfect :wink: ) my preprocessing in DxO causes dxo to reconstruct the highlights… which is often smoother but worse than DT methods.

Since DT recently got the ability to do some kind of HLR on rgb data (so i paint opposed works ok linear DNG for example ) I’m retrying a lot of shots with that combo… Maybe i should try sigmoid in images where i still use a tiny bit of filmics reconstruction to smooth over boundaries with HLR

I think your right… @jandren mentioned he might consider 50% as the default…

I think any and all shared tips images and discussion of the results are really good. You bring up a key point…when you say for your shots…so many people will have a style that might consistently push some boundaries or have subject material with some unique requirements that might push or reveal strength and weaknesses in each tool…

Because of easy of use and straightforward application of the sigmoid module I can see new users being more comfortable with it and experience users may also appreciate that and then use filmic’s extra tweaking or perhaps HLR in certain situations…

And then some might have spent so much time with filmic they have their settings well in hand for how they edit.

I think sharing tricky images and workflows for both is a really nice set of examples for everyone to appreciate and learn from…thanks to all of you that have posted and continue to post…

That is a really nice solution! I like it. It pretty much solves the issue that I was experiencing. I see myself using sigmoid probably a majority of the time and filmic for when I really need/want the extra control.

Same, I do like just to adjust it to taste when needed. There are also a lot of images where the preservation operation is unnoticeable, and it doesn’t matter what you put it to. What value did you end up with for this particular image?

and

These two observations about the loss of detail in highlights and better looking bright check nicely sum up the difficulty for a display transform. Those two requirements are competing with each other, and I think it is impossible to solve that problem without taking the local context into account. Neither filmic nor sigmoid does that; both are per-pixel-based in their operation. So you have two options to bring out more details in a bright area, either dodge it with a local edit or increase the local contrast.

This brings me to:

I think it would be even better to add the local contrast adjustment before the display transform module. D&S is the option at hand today, but a modernized local contrast had, in my eyes, been a very nice addition to darktable!

Nice to see your experiments with both normal daytime images, sunsets, and epic landscapes!
About a recommended workflow, I will try to use the discussion in this thread as a baseline for writing them later on. There are multiple methods to get to the same point, but two possibilities are the following:

  1. Activate and forget. (Default settings, contrast=~1.5, skew = 0, per-channel, hue preserve=50 or 100%) Do all the editing in other modules. The big difference to the recommended filmic workflow is that you will need to actively use the color balance rgb contrast slider to tweak your contrast setting.

  2. Sigmoid contrast as a start. Same settings as above, but after finding the mid-tones. Tune the sigmoid contrast setting until you are close to satisfied/“neutral” with the saturation for your mid-tones. Then work with other modules as you normally would. Adjust hue preserve to taste. Skew will be part of the equation but try to save it for later in the editing (my gut feeling here).

Those are my two most used approaches so far. There are more possibilities.

The short answer is no. Both assume that the input data is unbounded, and both give a bounded output. Sigmoid would, in this case, not become very white (converging to white requires large values on the input, larger than filmic ever will output). You may, however, apply both in parallel and then blend the two results together. Sadly not supported in darktable, but export both images and then blend them in Gimp or whatever. A node-based image editor could make crazy things like that doable.

8 Likes

I tried the Sigmoid module on the Sunflower Sagas and Solutions play raw. The file is here at 0L0A3314.CR2 (33.3 MB)

The Filmic Version:

0L0A3314_09.CR2.xmp (12.8 KB)

And the Sigmoid version:

0L0A3314_08.CR2.xmp (8.9 KB)

Sigmoid settings were close to out of the box, except I found the RGB Ratio under Color Processing gave the best results:

Sigmoid screen shot

I found with Sigmoid I was able to bring out glow and contrast to the flower’s petals, which was something I struggled to get with Filmic. As a whole I seem to get brighter colors and contrast when using Sigmoid. This looks very promising.

5 Likes

I went for these…

image
With 1 EV exposure…

Bold I guess but I like it… :slight_smile:

I really need to calibrate my screen…this looks much paler after exporting than on my display…

Not one of my best shots, it was extremely sunny at Loch Rannoch, so the range is pretty high.

Here is the original image, and the developed images with their sidecars. The original sidecar is Sigmoid and the “1” sidecar is Filimic.

20221103_0015.NEF.xmp (11.7 KB)
20221103_0015.NEF (51.9 MB)
20221103_0015_01.NEF.xmp (12.2 KB)



These files are licensed Creative Commons, By-Attribution, Share-Alike.

3 Likes

To follow up my post from a few days ago, I have one of the sunset images I tried with Sigmoid. Not a great shot overall, and not edited to look it’s best, only to show what I get Sigmoid to do. Highlight reconstruction is with Inpaint opposed in both cases, and this camera (Canon 550D) requires the clipping threshold to be set at 0,847.

So here is the one with Sigmoid:


Marokko_0066_01.CR2.xmp (10.7 KB)

Perfect gradation outwards from the white(ish) sun, just the way I like it, with a reasonable amount of yellow before the orange, and no clipping or banding, at least on a reasonably good monitor.

And here is the best I could get with Filmic V6:


Marokko_0066_02.CR2.xmp (8.1 KB)

Too much desaturation around the sun going directly into salmon pink.

Filmic V5 Gives a slightly better result, but here I have to tweak both white relative exposure in Filmic and highlights saturation in Colorbalance RGB to get a nice yellow, and the gradient outwards from the sun is still not as good as with Sigmoid, even with much more work:


Marokko_0066_03.CR2.xmp (9.8 KB)

All of these also have the standard basic colorfulness preset applied in colorbalance rgb.

And here is the raw file, if anyone wants to try:
Marokko_0066.CR2 (19.8 MB)
These files are licensed Creative Commons, By-Attribution, Share-Alike.

I haven’t tested much with more day-to-day images under different conditions yet, but I’m pretty shure I will end up using both Filmic and Sigmoid in the future. They are both great, with their own strengths and weaknesses, and they will both be the best for different situations.

9 Likes

Another very nice-looking sunset picture!

Maybe I should have called it “the sunset module”…

11 Likes

Yes a modernized local contrast (i.e. local contrast RGB) would be great! Is anyone working on it? Similar to what vkdt has currently works great.

1 Like

So here is a comparison of my exp build with the gamut_check_RGB() calls disabled in filmic v6 to sigmoid. I’ll try to post exp files later maybe, but I have them disabled for the moment so I don’t mess up by normal dbase. But I’ll show the only differences between the two complete edits- there are only 2 module changes, including sigmoid.

With sigmoid I was able to get VERY close to what I consider the best renders I’ve obtained using the experimental build of mine.

If you start from my original xmp, and open using the master (11/05) that includes sigmoid, the changes I made are as follows-

filmic v6: off

sigmoid settings:

Now this makes the colors and details look the way I want, but it tends to sabotage the contrast in the shadows as a trade-off. After experimenting I found that the tone equalizer could be used to get it to look almost the same as my original edit. Here are the tone equalizer settings:


And here are the two edits-

My original “best” using my exp build with the gamut_check_RGB() calls disabled:

And here is my edit using the master (11/05) with sigmoid and settings I described above:

It looks pretty good IMO- encouraging!

Lots of crashes unfortunately with this build but not necessarily having anything to do with sigmoid- seemed to happen a lot while tone EQ was being manipulated.

5 Likes