Yes, that is how I have always understood it. But if my display is showing me a great looking image after ColorBalanceRGB, then I apply any of the tone mappers and they all make it dull, I tend to want to go with the great looking image.
Or to put it another way, if those images I like contain bad clipping, why do they look better instead of worse? (I do not have a fancy HDR screen, either.)
Of course. If you don’t care about those extreme highlights (snow, white clouds, the Sun…), don’t compress the dynamic range. Certainly don’t make them dull grey.
The fact that you have asked this question demonstrates that you understand my point. Yes, the exposure is a little dark based upon the histogram. But as kofa said midtones are a wider range so just set the exposure so the subject looks right. This image is not edited but in the editing I would raise the exposure a small amount.
Hi Tim. This is not my experience especially now that I am using AgX. I use AgX to prevent my images looking dull. I find that auto tune levels on AgX places the whites and the blacks really nicely 99.99999% of the time. After that the other sliders tend to be optional depending on the look I go for, but AgX doesn’t give me dull images.
As for Sigmoid, it usually just works straight out of the box for me except I like a little more contrast than the default so I raise that for my camera so the images aren’t dull looking. But I prefer the extra level of control from AgX.
I wonder if your screen calibration is a source of problems for you when judging the output of the tone mappers? I have three screens connected and only one which I put my trust in.
I think this is the correct definition. Midtones is where you want the most contrast in your mapping. It does not necessarily imply a given level of gray, even though only AgX allows decoupling it from the “18%” in the main sliders.
You only have so much contrast to go around (“contrast” here is the derivative of the tonemapper function, and it has to integrate to 1). This applies to the identity function too (“no tonemapper”).
Sometimes you do want contrast in highs/lows. A flexible tonemapper should allow this, in AgX it is easy to do.
I do like this definition. It intuitively makes sense, it’s something clear and simple I can file away in my brain and then refer to it. However, I am not sure if it is accurate.
don’t the different tonemappers have different ways to select what is and is not the linear part? doesn’t AgX itself allow to tweak the parameters?
if I don’t use the tonemapper at all, what would that mean for my midtones? I know you wrote “affected later”, but in such cases they would not be affected at all
does this hold throughout darktable: for example, in color balance rgb I have sliders for midtones. do they work respect this definition? I think the module itself lets me tweak the range for each slider, so it appears that the definition also doesn’t really apply here
I look forward to any further thoughts. In any case, thanks both for your patience and interesting discussion!
I would suggest that it might be because we like contrast. Contrasty things look naturally attractive to us. Hence the pretty common advice that for a nice looking photo, it is often helpful to have it contain pure black and pure white.
I tend to be happy with lack of pure white in my pictures, but sometimes I get them because I want more and more contrast in my midtones (whatever they are exactly, haha). I tolerate pure white in brightest parts of clouds, or specular highlights on reflective objects like polished metal.
Now for a more practical bit: one way I found to add maximum contrast DESPITE tone mapper compression is with the local contrast module. A method that seems to work reasonably well is to
get your exposure and other brightness controls in the right ballpark, whatever you are used to doing
apply local contrast - the clarity preset is a good starting point, or, better, copy the settings from any of Uli’s playraw xmps
Only now adjust your tone mapper - in this case, sigmoid. Just crank the contrast as far right as it will go so that you start getting pure white in the image. Make sure to have clipping warnings enabled for this. This pure white will appear due to the local contrast working later in the pipeline, taking your “dull” whites and making them brighter.
I guess that would depend on what exactly is clipped.
But if the important part of your image had a larger tonal range than your output medium can support, you have a choice:
don’t use a tone mapper (of any kind!, tone equaliser also maps tones), and accept clipping
use a tone mapper, adjust the contrast, and if needed add local contrast.
There’s no “obligation” to use a tone mapper, but I find it rather telling that most of us use one, and that so much effort is put into developing them. That would suggest that they are generally useful. (Although I do have enough images where I don’t use one of the “official” tone mappers, but then tone equaliser has some work to do).
Note: if you edit your image to look good, and then apply a tone mapper, that could explain why your image gets worse…
The picker on middle grey in ‘scene’ is weird, it seems to choose 50% of the highest value in the picked area, instead of an average, like AgX does. So it’s designed to pick the mid point of the whole scene, I guess.
I use sigmoid for simplicity: if I use AgX, I will spend much more time tweaking it. Filmic I never reached an understanding with, but @gwbarn has just demonstrated.
But AgX almost certainly rules when it comes to placing contrast. It is as simple as using the picker with pivot target output and drawing a box.
I sometimes use the skew slider in sigmoid. I think it has a similar effect: tooltip says "shift the compression towards shadows or highlights … … … "
In my concert photography I almost never want to see bright whites. I will begin by hitting them with a parametric-masked 1.5 stop (or more) reduction in exposure. I reduce them as far as I can before they start to look dirty-grey.
My next task is 40-50 pics from this concert. Here, almost nothing is done, except sigmoid is turned on. (It is a lot sharper than this: I just did a quick export at a tiny 720 size to show the tones.
Can this be described as “incorrect exposure of sigmoid?” Is it incorrect exposure in camera? I don’t know: to me it just something that has to be handled.
I think what you might be experiencing is the default agx settings removing contrast due to the default toe/shoulder start positions + the default toe/shoulder power values.
Here is an example edited photo before and after default agx is applied (5.4.0). Note that I did the whole edit with agx turned off, and then turned it on to demonstrate how it reduce contrast, even though it technically boosts it for 18% grey:
There are a couple of reasons the contrast gets reduced, but the primary reason in my opinion is that the default agx preset adds a safety margin to the dynamic range, and has very smooth toe & shoulder AND because the default relative white/black points are not made specific for this particular image. This causes the brightest highlights to be compressed towards the midtones most of the time.
There are three general solutions for this issue:
Don’t use AgX or any tone mapper if you feel that it makes the edit worse.
Begin your edit with the tone mapper enabled. This will allow you to naturally edit “into” the tone mapper, gaining the benifit of clipping management, without the “suprise” of enabling it halfway through the edit and having to readjust to get your nice crispy contrast back.
Use a more “digital” preset for AgX. Let’s say you do your edit, and you like the way it looks, but you would prefer to have the clipping management of AgX or the slight color characteristics. I have one options for a more digital AgX preset explained below, with an example of how it looks compared to the same edit on the left above.
“Digital” AgX Preset
Left: Same edit as the left image above, Right: edit + agx_digital.
One of the easiest ways to use AgX, is to use the auto picker to set the relative white/black points. Unfortunately, the dynamic range scaling parameter adds a safety margin on top of the auto-detected range, which causes extra reduction in the highlights/shadows. If you set that to 0 after using the auto-picker, you will see an imediate return of some of that global contrast.
Bring Back the “Digital” Highlight Behavior
By default AgX has a very smooth shoulder, which resists the more “crispy” highlights present in more display-referred photo editing. In order to restore this, try first setting the shoulder start to something like 90-95%. This makes the highlights more linear, and allows the brightest values to be pushed really hard into near-white.
If you see the warning indicators for the curve, you can either ignore them or adjust the contrast value until the warning disappears.
Correcting Overly-crushed Shadows in agx_digital
If you see that the shadows get too crushed after enabling and adjusting the agx_digital preset, here is an easy way to fix it:
Reduce the relative black exposure (Here, I went from -4 to -10) in order to bring the shadows up out of the very bottom of the range.
Reduce the toe power to further reduce how much the shadows are being crushed.
Here is the same edit as above compared with the “digital” agx preset adjusted to reduce the crushing of the shadows:
Click the relative white/black exposure auto-picker.
Set dynamic range scaling to 0.
Adjust contrast to taste.
If shadows are too crushed, reduce the toe power and/or reduce the relative black exposure.
P.S.
Note, I am not taking this as far as I could. I could set the shoulder and toe start at 100, and that would let me get much harsher, digital like black and white, but I want to retain some of the benefits of AgX.
Most instructions I see say to use a tone mapper at the “end” of editing. That is what I’ve been trying to do. In my most recent edit (of the boat in the foggy conditions), I used AgX near the “front” of my processing and, like you are saying, it seemed to let me have more of the control I wanted.
I’ve always used tone mapper as the second module I touch (more or less), just after exposure. With AgX and Sigmoid, the tone mapper gives the photo like 80-90% of the look I’m aiming for, so doing it last would feel so weird…
Yes, when I edited the photo without AgX, I was still being careful to avoid ugly clipping, but to use clipping in just those small little cloud highlights that make the contrast appear super punchy.
For me, I usually adjust the tone mapper 1st or 2nd during editing. Sometimes I will adjust exposure first, but if I already have an AgX preset in mind for the image, I will set that and then adjust exposure, since the subject in the image is not always going to be perfect 18% grey and so any change in the tone mapper will change my overall perception of the image.
Sorry if my comment sounded harsh, I didn’t mean to say that I am upset about the default, it doesn’t really matter to me. I only meant to say that for someone who is going after a very digital look (high highlight details plus pure whites), but also who wants to use the auto picker for the relative w/b exposure, the dynamic range scaling is unfortunate for them.
This image raises a theoretical question. Namely, where do the dull tones come from? Is it really that the shadows are not well-lit, or is it stray light coming into your lens from something else and reaching the same pixels?
If it’s stray light, also known as haze, then it needs to be subtracted early and not worked around at the tone mapper. By saying “subtracted early,” I mean one of the following: the black level compensation in the Exposure module, the Haze removal module, or, in extreme cases, raw black levels.
Yes, I am aware of the help text of the Exposure module that reminds you not to use the black level compensation to make deeper shadows. That advice is physically wrong for the case where the elevated sensor readings in the supposedly-dark areas are not due to the scene itself but due to something in between.
EDIT: Let me add that haze is common in long-lens photos, and I am replying to a post containing a long-lens photo.
EDIT 2: Let me also note that RawTherapee’s “Game Changer” approach calls for setting the raw black levels explicitly, and that’s exactly due to haze-like effects, so I am not alone in my thinking.
EDIT 3: In your image, it looks like a mix of both. Your AgX edit looks darker overall than what’s achieved by a “physically correct” black level correction (+0.0097 in the JPEG), using the nostril as a to-become-black reference, and that’s fine.