Shadows / highlights tool

Don’t realy have much time but the results you in the first video are great.

@agriggio Alberto, I like your new implementation of the shadows/highlights tool. I my test cases, it was mostly the shadow-lifting side of the tool that I tested, which is more natural that the earlier implementation. Colors in the shadows lifted with this tool are somehow less saturated that what the HDR Tone mapping does, but one can compensate for it by using the Lab* chromaticity slider for example.
Great job again!

Edit: I just reverted to the old version, opened the same image with the pp3 from the image edited with the new tool, and… yuck… terrible result with the old tool! IMO you can push the commits!

Hi all, thanks for the feedback! I also like the new one better than the old :slight_smile:
The concerns are currently:

  • the new tool is incompatible with the old one. Pictures that looked good with the old implementation might look quite bad with the new one, as there is no attempt at preserving the meaning of the parameters

  • is the current version better enough (assuming it’s better at all, of course…) to break backwards compatibility?

  • are there drawbacks/regressions?

Personally, I never managed to find a good use of the old shadows/highlights tool, but it’s very possible that I just never learnt how to use it properly.

I almost never used the old old one because it wasn’t working well for me 99% of the time (it produced halos, and shadows looked quite washed out to me). Lately, I used HDR tone mapping as a sort of Shadows/Highlights tool.
But the new S/H tool is definitely working, and much much better.
I guess the old tool was not used very often, so breaking backwards compatibility is probably not a huge problem. Besides, if one opens an image which used the old tool, it won’t look horrible, and getting a better look will be easy. Just my 2 cts.

1 Like

Hello, after few tries I must say that I like it much more then the previous one. Sometimes it gave me a satisfactory result, in the other cases - almost fine ;). My two cents:

  • in situations with crazy high dynamic range, shadows were raised but the new algorithm made them washed out, with no contrast. Of course, I was able to introduce some punch using another set of curves, but it was an extra step (which is also fine!)… However, the old method, with its drawbacks and halos, gave us also some contrast.
  • comparing to Lightroom (I know…!) highlights sometimes were not rescued. Look at the movie attached. It’s not like there is no information in the picture. It is there, but the effect is too weak?..

btw. what are you guys using to record screen?

https://filebin.net/ug4ls4gsh3a2z98l

DSC06368.ARW (18.0 MB)

Hi @kazah7, thanks for the feedback!
To answer your questions (and also @sguyader in part) :

Well it’s also a matter of finding the “sweet spot”. If you are talking about the desturation in the shadows, the tool tries to raise the chromaticity when pushing shadows, but currently it’s a bit conservative. I can try making it a bit more aggressive. If you are lacking local contrast, well there’s another tool for that :slight_smile: (if instead I just didn’t get your point, please clarify, thanks!)

Hmmm:
https://filebin.net/mni157skqguor8hk/Peek_2018-04-24_10-33.mp4
better now? (I have no idea how the lightroom slider works, but I suspect there’s a lot going on behind that simple slider…)

4 Likes

@agriggio that’s amazing!

Gosh! Of course. No further questions when it comes to highlights :slight_smile: About that sweet contrast spot - you got my point, if you make it a bit more aggressive, it will be perfect. Thanks for awesome work!!

Hi @kazah7 and @sguyader,
do you have examples showing the “washed out” effect when lifting shadows (ideally also with a rendering of what you consider acceptable)? Seeing a couple of samples would be quite helpful in tuning the tool…

Thanks!

@agriggio I was just seeing more subdued colors when to compared to the HDR Tone mapping tool. I didn’t want to say it is a problem, and colors can easily be boosted if needed with saturation or chromaticity sliders for example.
I just tried quickly comparing both tools, if I lift shadows in both to raise L* to about 14, a* and b* values measure around 5-6 with S/H tool, and 10-11 with HDR TM. Or in HSV, when V is around 18% for both, S measures around 35% with S/H tool and 65% with HTR TM.
But… the look is more natural to me with the S/H tool. It’s a matter of taste I think.

So, as @sguyader said it’s a matter of taste. In my opinion, there are some situations in which this additional punch would be needed. Check out this photo. I managed to add more contrast, and only to the shadows area, using wavelets. DSC02244.ARW (41.1 MB)
shadows.pp3 (11.3 KB)

Maybe it is too much, but you should get my point. Another thing is somehow connected to @sguyader’s question. How would you give more saturation only to the sky from my previous photo? CL curve form LAB does not do the job. Darktable has additional two sliders to deal with it - “highlights&shadows colour adjustment”.

Another challenging photo, and similar story with contrast.But as I said, it can all be done using different set of tools.It is simply a matter of time.DSC02255.ARW (41.0 MB)

Hi all,
thanks for the feedback (and the test images), very helpful!
I’ve just pushed a small tweak that tries to add a bit more contrast to the shadows. It’s subtle, don’t expect big changes, but in my (so far limited) tests it seems helpful.
A couple more comments:

But… the look is more natural to me with the S/H tool. It’s a matter of taste I think.

I agree it’s a matter of taste. But don’t be afraid to use both tools together! FWIW, this is what I do in challenging situations – see below. Incidentally, I wouldn’t be surprised if Lightroom was applying some tone mapping under the hood (though of course I’m not sure).

Check out this photo
[…]
Another challenging photo, and similar story with contrast

Thanks for sharing, these are challenging indeed! My approach was to use both HDR tone mapping (for an initial compression of the dynamic range) and the shadows/highlights tool (for further tweaks). Here are my results, just in case. I’m reasonably happy with the first one, not so much with the second… surely we won’t run out of things to do :slight_smile:


DSC02244.ARW.pp3 (10.5 KB)


DSC02255.ARW.pp3 (10.6 KB)

1 Like

@agriggio Just a suggestion, don’t know if it’s possible to do. In general, shadows have a cooler color temperature than sunlit parts. As a consequence, when we lift the shadows, the difference in color temperature is more obvious. It’s particularly visible in the two images above: warm sunlit background, cool/blueish shadows.
Would it be possible to add a slider allowing to warm up the lifted shadows in such situations?

1 Like

@sguyader as a workaround, I use color toning for that.

I agree with @Morgan_Hardwood

1 Like

@Morgan_Hardwood Interesting, I actually never used color toning besides experimenting, I’ll give it a try.

Edit: I discovered the “L*a*b* Color correction grid” tool in Color toning, I like it a lot!

I’m getting more and more excited to try out the new SH tool as well as the tool you just mentioned. If I only had the time…

@agriggio I have started to play with the new S/H tool, comparing it with my preferred (but slow and complicated) method based on enfuse.

Here is an example of my method applied to the image from this PlayRAW:

To obtain this result, I did the following:

  • saved several linear-gamma TIFF images at 1EV exposure increments, from 0EV to +9EV
  • combined the TIFF files with enfuse with default options
  • I opened the original RAW, applied a +1EV exposure compensation, then loaded the enfuse output on top of it
  • I merged the two images with a luminosity mask build like this:
    • inverted L channel
    • reduced weight of mid-tones with this curve: 34
    • applied a bilateral blur (from GMIC) on the curve output (gaussian blur produces halos around the sharp edges)
  • finally, I slightly increased the mid-tones contrast with an RGB curve applied to the merged output

With RT I was not able to get a similar result, particularly to preserve the smoothness of the sky tonality in the top-right part where it gets dark…

Since you know the S/H tool much better, I’d be really curious to see what would be your best result on this image. Also, maybe the steps above can give you some nice idea… my dream would be to optimize enfuse to the point where it could be used in real-time.

6:55 AM

3 Likes