Darktable 3.0 workflow

Firs of all, this is about using the new stuff introduced in DT 2.7/3.0.

I understand that a proper workflow would be to follow one of the two options:

  1. base curve + tone curve

  2. filmic rgb + tone equalizer

N. 2 would avoid the user to use shadow highlights and tone curve / rgb curve altogether, if I’ve understood correctly.

Can we add a number 3 perhaps? something like:

  1. exposure+rgb curve

Is there anything missing from such a simple sequence like this (obviously followed by denoising when needed, sharpening and local contrast)? Something to use for example when you don’t want to increase your blacks (so no need to resort to the old shadow/highlights or filmic with its ability to distribute light in a uniform way all over the photo)?

After this attempt of oversimplification, a bazillion other questions came to me, born out of confusing late-night experiments and assorted readings on this forum, watching videos while half-asleep etc. I’ll try to follow a certain logic, so here we go.

Tone curves in LAB mode

Is the tone curve in LAB mode (that until recently was my go-to module to do the bulk of my processing) deprecated or not?

I have read about the necessity to follow a complete RGB pipeline, so my understanding is that we should not do any more processing in LAB mode – which means I should abandon my dear Tone curve in LAB mode. Is this correct? Is this the reason for the introduction of the RGB curve module? And finally: is RGB curve module (linked mode) == Tone curves in RGB m,ode (linked)?

Correcting color casts

If the above is true, i.e. don’t use Tone curve in LAB mode, how am I supposed to fix color casts? I was used to adjust the A/B curves to do this, so is there an alternative for doing this?

I suppose the answer lies in the new color balance module and its ability to neutralize colors, but is there any other recommended method?

Exposure in the pipeline

What is the correct order in the pipeline for the exposure module?

I’m asking because of two contrasting sets of notes I’ve scribbled down. First this:

  • white balance

  • filmic rgb

  • exposure

  • [color corrections]

But I also have the following, from a message posted here on some other thread:

  • exposure

  • white balance

  • color profiles / LUT

  • filmic (tones)

  • color balance (colors)

  • denoising and [other enhancements]

So which is the correct one? Exposure before WB? Exposure after WB and filmic?

Saturation

All the new modules (filmic rgb, rgb curves etc) default to suppress the famous ‘oversaturation’ effect. So what is the best/most correct way to add back some saturation to photographs?

A little background: back in my first days of Darktable I was happily using S-curve to not only increase contrast but also saturation. I think I’ve learnt this when using Lightroom and thought that this was a natural and desired consequence, until DT’s developers started yelling at me, saying “careful you moron! this increase in saturation is a by-product and it’s something conceptually wrong!!! You think you want it but in reality you should not-want-it-ever-again!”.

So how do I go adding back some saturation? Is velvia a good module to use (to me it seems like a module that adds the saturation in all the correct places; for instance vibrance I’m not sure what to make of it, while I distinctly remember that in Lightroom this was the slider to use as opposed to saturation; in DT it seems to me like vibrance doesn’t do much)? Or is the saturation slider in the new color balance module the one to use?

5 Likes

This is a for-what-its-worth sort of thing, not specific to any software…

Exposure and white balance are both unconstrained arithmetic multiplication of the image data. I’d surmise that they need to be done before any tone curve, with special attention to not pushing the data into clipping at the white point. Once the data is positioned thusly, the tone curves mostly peak at the white point, which means they usually don’t push the data past white. With that in mind, I’d put the tone curves after such multiplication.

Indeed, that pretty much describes my workflow. At the end of demosaic, I have a RGB image that is still scaled to the original camera range, in my case 14-bit. I think a lot of folk would then scale the data to fit in the display range using exposure; I use a blackwhitepoint tool that has an option to place black and white at the min and max of the data. So now, I have a RGB image with data that is linearly scaled to fit between black and white. At this point, I usually introduce a curve, which now redistributes the data non-linearly for some purpose, usually to lift the shadows into visibility. Lately, it’s been mostly a filmic curve, but sometimes I want to pull the lower data “lower”, so I’ll use a manually-constructed S-curve. But sometimes, the linear data looks fine, so I leave it “uncurved”. Depends on how the scene was lighted, or even just my whim. I love to separate a bright subject from its darker background with such a curve; I recently did one of these for this PlayRaw, with a screenshot of the curve:

I’m also a fan of minimizing the number of operations. I think sometimes we whipsaw the data with sometimes conflicting operations, especially curves, at the expense of color saturation and casts. I’ll usually start with filmic, but if it isn’t scratching my itch, I’ll pull it out and replace it with a manual curve. Very Very rarely will I use both. I’d like to take this minimalism to an extreme and use my camera profile to also correct white balance (I’ve messed wtih such, and it works well), but I’m too lazy to shoot ColorChecker shots for most sessions :smile:

Anyhoo, take-with-grain-o-salt…

2 Likes

Reading your post, it sounds like you didn’t watch Aurelien his videos at all :slight_smile: Maybe try again with enough sleep. Sleeping is learning, a mind without enough sleep can’t learn. (Book suggestion: Why we sleep)

Back on topic. You work the pixel pipe from bottom to top. This means you follow these steps:

  1. white balance
  2. demosaic
  3. lens correction (vignetting correction change exposure, tca fixes colors)
  4. exposure to bring all pixels into the histogram
  5. denoising (if you want to use auto tune in filmic rgb)
  6. filmic rgb

Note that for really dark pictures, you need to increase the exposure to see something before you can do any of the other steps, but exposure should be set before filmic rgb.

After these steps normally you should be done for most of the pictures! If not everything after that is the artistic workflow.

If you want to increase saturation, use the output saturation slider in the color balance module.

Using tone curve in Lab mode is fine. Also there is a difference between tone curve and rgb curve. I find the blending modes with a tone curve much more pleasing. Haven’t looked why this is the case yet.

4 Likes

I don’t think you should abandon LAB tone curve. Some modules work on RGB Channels like demosaicing or white balance.
For other modules like a tone curve LAB mode offers much more editing capabilities than RGB. Just check this comparison of LAB and RGB.

You can reproduce that with the tone curves in darktable. Doing these ‘crazy’ curves in LAB A and B channel don’t mess up your image since they don’t affect the L channel.
RGB channels don’t have this flexibility.

Moreover LAB Color is intended to approximate human vision. Watch the latest video by Aurelien Pierre from 10:15

Lab is an attempt of modelling human vision from 1976. There are better ones available now, and it is not intended to push pixels creatively, especially not in high dynamic ranges. Some technical operations like gamut mapping make sense in Lab, when you try match some colour to the closest colour in another space, you can use Lab (or better ones) to minimize the Delta E.

Yet it has some benefits when you want to switch a and b channels for creative work on colour, but you need to ensure you work in the display-referred place of your pipeline. We still have to design similar tools that are not bounded by this low dynamic range constraint.

No other recommended method, I have designed the neutralizing color option in the color balance specifically for that purpose. There is the colour correction module too, working in Lab, but the result it gives is otfen weird, and the UI is not very practical.

Exposure can theoritically go anywhere in the scene-linear part of the pipeline, that’s the beauty of linear editing. Yet, since the input colour profiles are optimized for better colour rendition around midtones, if you really underexposed your shot, you might better put it before input colour profile so you raise the raw signal in the profile’s sweet spot before matching colours.

WB works on non-demosaiced pictures and exposure on demosaiced RGB, so there is no way you can switch them both: WB needs to be before demosaicing, and exposure after.

I think you are overthinking it.

  1. do as much editing as you can with an RGB scene-linear workflow, because it’s robust (less prone to haloing, and weird side effects), physically accurate and usually more natural-looking when you push sliders far away,
  2. if you need Lab tools for special effects and creative stuff, use them, but ensure you do so in a tone-mapped space and keep in mind they are not robust enough to make dramatic lightness changes to your picture without screwing chromaticity, raising noise, or creating halos (sometimes all at once),
  3. in case of any doubt, use what looks best.

As a designer of tools, I have to consider the most robust way to use them in an efficient pipeline that will cause minimal distorsion to images and minimal overhead for users (overhead being, in general, you need to correct the side effects of one module with another or do circular editing). So the workflow I propose is like the hands at 10:10 on the stirring wheel when you learn how to drive: the always safe option. It doesn’t mean you can’t drive single-handed under light traffic conditions in straight lines once you got your driving license. But get your driving license first.

All the advice I give here is aimed at getting a natural-looking picture, similar to the original scene, in a minimal amount of time. Once you have achieved this purpose, you either have your finished product if you are a documentary photographer, or a clean base to continue with more creative work and special effects, for which I have nothing to say (do whatever you like). If you want to switch a and b channels, do it, but if you need to mask & blend the output of this, be careful of the transition at mask edges because you could get weird stuff.

All this is assuming you want to use the auto-tuners in filmic.

Filmic is your LDR goggles over a (possibly) HDR signal. So you could set it up first with some preset, just to get a proper scope over your signal, then work the WB, exposure and denoising magic on something you can actually see. You don’t necessarily have to set up the modules in the same order they are applied (unless you use parametric blending, because the masks depend on the output of the previous modules, but this is because masking is badly designed in dt).

I think I should put this warning everywhere though:

All the advice I give is aimed at getting a natural-looking picture, similar to the original scene, in a minimal amount of time. Once you have achieved this purpose, you either have your finished product if you are a documentary photographer, or a clean base to continue with more creative work and special effects.

If there is only one thing to remember, it’s this:

Lab is not suited as a general-purpose editing space to correct and adjust pictures. Use it only for gamut mapping and special colour effects in Low Dynamic Ranges spaces.

7 Likes

Personally I rarely use a bare Luma curve – when you increase contrast your brain expects some saturation boost as well, maybe not so much as what you get with an RGB curve, so it’s somewhere in between.

Where I find Lab curve useful is when I need saturation boost – making steeper *a and *b curves is a very nice way of increasing saturation that looks perceptually OK. I’m not sure if Lab is the colour model used by the Vibrance or Velvia tools, but it should be. Otherwise you can make your own Vibrance tool by using Lab curve with parametric masking, utilizing the Chroma channel for the mask – see Harry Durgin’s approach.

2 Likes

Just a quick note to say thanks to everybody that has posted in this thread. All very valuable contributions for me; yesterday evening (again, very late!!!) it was a fun processing section, I felt much more confident in what I was doing. I discovered that old edits have the processing pipeline totally screwed up compared to new photos, but that’s something that Aurelien has repeatedly written here and on youtube, so I won’t be going through my old edits just to put modules in the “correct” order… I promise!!

2 Likes

At what stage the application of 3D Lut recommeded? Towards end of the workflow, or much earlier?

It depends. if it is used to bring out the correct colors (e.g. when editing a clog image) then it makes sense to have it early in the pipe. If used to do some artistic stuff it’s better used after filmic

1 Like

I use RawTherapee’s 3D Luts for emulation of analog film. I move the 3D lut module to the position after the module “output color profile”. My idea is that since my luts work in sRGB, and my output profile is sRGB, it is better to place them after DarkTable down-converts the working color profile to the output profile.

1 Like

Makes sense. Thank you.

The 3D Lut module already converts to the required color space internally (as per user settings). Putting it after output colour profile, you risk having the sRGB OETF (“gamma”) applied twice before the LUT is applied, and that will yield wrong results. Not to mention, if output profile is anything but sRGB, you are screwed in unpredictable ways.

2 Likes

Thanks you for that information! I was hoping someone would correct me if I was wrong. :slight_smile:

But, in reality when my output profile is sRGB there the result is more or less the same if I place the LUT module just before or after the output profile module. The big difference is between placing the module before Filmic or after.

Dear aurelian,
thanks for yor great work. I don’t know why, but the filmic module in 3.0 (not 3.2 or 3.3) gives more naturally looking results (for me!). I’ve tried to get a similar look with filmicv4, but without success. Don’t know why. Even choosing filmicv3 in DT 3.3 does not give the “analog” look I loved so much in DT 3.0.
Any ideas? Spent a lot of hours of investigating.
PS: sorry for my bad “german” english.

Hi @Hirse_Brei & welcome! You’ll probably need to be way more specific and post some examples if you want meaningful feedback. Unfortunately, “not as good” doesn’t tell us anything of substance.

Oh, no, it is not an issue of Quality, it’s an issue of taste. With original filmic picture were to bright, now without much more bias adjusting than 0,5 EV they are too dark. So the internal code must have changed drastically. Maybe the new code gives more “correct” results and I’m wrong - taste.
I will look for the correct way of posting files.

Moin @Hirse_Brei and welcome!

Is your camera a Fuji?
If so, try EV 1.2.

MfG
Claes in Lund, Schweden

In filmic v3 we were used to adjust middle grey luminance, in v4 that is set to 18.45% by default and we have to adjust exposure instead, but it should be equivalent.
What camera do you have? With my Sony A6400 I have to set exposure to +1.2 EV to get correct luminance for middle grey, and it seems also Fuji requires +1.2 EV.

I saw this in Aurelians Videos - we schould use exposure instead. But, it seems to be not identical. Middle grey is (a kind of) gamma. Exposure is luminance, i guess. Three are many other ways to set the greypoint either.
I have a Pentax K3 (APS) and a Sony ILCE7M2 (FF).
Exposure has to be set to +1,5 to +2,5 especially in midday sun.
Setting the Bias higher on camera is not recommended from logical point of view, am I right? Filmic should be HDR in one shot (Aurelian says), so setting exposure in DT is part of the process, right?
BTW, DT and filmic is great - much, much more Details than in out-of-camera jpg.

The exposure slider and the middle grey slider are doing identical things. The only difference is the units on the slider – exposure slider is calibrated in EV, and you slide it to the right to increase exposure value, whereas middle grey luminance is calibrated in % luminance, and you slide it to the left to increase exposure (assuming you unhide it).

No, the gamma power function is now called the “hardness” control on the look tab. Normally it is hidden unless you uncheck the “auto adjust hardness” box on the options tab.

True, but exposure module is the most straightforward way.

You should set the exposure compensation/bias on the camera so the the image is as bright as possible without clipping the highlights. Photographers often call this Exposing to the Right (ETTR), and is allows you to make maximum use of the dynamic range of your camera’s sensor.

Filmic take the full dynamic range of the image from your camera’s sensor and compresses it down to a dynamic range more suitable for your display. Part of that process is to set the global exposure of your image using exposure module. In darktable 3.2.1 Filmic will take into account any exposure compensation setting you introduced on your camera to “expose to the right”.

1 Like