New "relight" filter, a digital "fill-in flash"

I have just introduced a simplified version of the shadows/highlights tool, designed to brighten back-lit images. The idea is to create a sort of “digital fill-in flash”, that brightens the dark areas without significantly affecting the highlights.

Here is an example of what can be obtained with just three controls, one that adjusts the strength of the shadows compression, one that defines the shadows range, and the third to introduce some contrast in the mid-tones:

If you are interested and want to read more, I have written a detailed blog post on the subject.

2 Likes

It’s like you’re peeking over my shoulder. The new camera has a highlight-weighted matrix metering mode, and I recently shot pictures at one of the subjects the camera maker recommends for the mode: a theater-lit musical event. I did a number of dual exposures, one with each of the matrix modes, and the highlight-weighted shots won the day.

What I had to do with each one, however, was to apply a curve to pull up the shadows. Not onerous, actually consistent enough to script for batch proofing. I’m curious to see how relight results will compare, may convince me to start using photoflow for my manual processing.

Neat!!

1 Like

What about posting a sample RAW file to play with :wink: ?

2 Likes

The point is that a simple curve does a decent job, but kills local contrast. To see this, let me show you the output of the shadows/highlights tool when using a very small blur radius (which is equivalent to applying the tone compression curve to the non-blurred image):

This is with the guided filter radius at 128:

Nothing enormously different, yet IMHO the second one is better…

2 Likes

My upload to pixls.us kept aborting, was able to scp it to my web server:

https://glenn.pulpitrock.net/Individual_Pictures/DSZ_1127.NEF
License: CC-BY NC (https://creativecommons.org/licenses/by-nc/4.0/)

Here is your original image, with only a basic raw processing:

Here is the result of a single “relight” layer:

05

while this is sightly more complex edit, with a partial exposure correction + highlights compression prior to the relight filter:


04
DSZ_1127.pfi (35.9 KB)

1 Like

Interesting results. In rawproc, to even get close to the relight shadow distribution I needed a rather aggressive curve; here’s a screenshot that tries to capture the difference:

In the processing chain up to the curve, I kept the original proof raw conversion except to remove the blackwhitepoint scaling, and I added a camera space -> working profile transform. Thing is, the upper values are maybe too saturated in the relight rendition, at least to my eyes.

Your thread has come at an opportune time for me, as I’m working through this very consideration in figuring out how to use the new camera. It goes into a “one tone curve to rule them all” sort of mental discourse (ha, there’s a fancy way to refer to ‘talking to ones self’… :smiley: ) and the never-ending quest for reliable ETTR.

With regard to such tools in rawproc, I’m actually going the other way; 0.9 is going to remove my simplistic shadow, highlight, and contrast tools, as I now prefer to do such manually with a spline curve. But such considerations are taking me to a “dark place” regarding my curve tool, that is, what do I need to do to get it out of the old 0-255 paradigm and allow one to construct proper curves over the high bit-depth display range.

I need to update my Photoflow AppImage; is relight in your nightlies?

Interesting exercise! FWIW, here’s how I’d do it (though I don’t have a one-slider solution):

1 Like

Nice!! What did you do?

Very nice! I’d be very much interested in the PP3…

well I cheated :wink:
I used not just global controls (mostly dynamic range compression, shadows push and exposure compensation), but I also darkened the stage with a local mask. I don’t have a (useable) pp3, but I’ll try to show the main steps later. I think you should be able to do everything in photoflow as well

2 Likes

That explains my perplexity! :wink:

Haven’t read the blog post yet. I applied lens correction in PhotoFlow but it is different from @agriggio’s.

@agriggio I followed your idea, and partially restored the stage with a local mask:

@afre the relight tool is based on a close-to-linear curve in log-lumi space, which translates into a sort-of power function in linear space. That’s why it is quite aggressive in the deep shadows. Also, the curve is applied to a blurred luminance channel, which helps preserving local contrast…

I will finish writing up the blog post about the new shadows/highlights tool as soon as possible. That’s the place where I will explain all the technical details…