posted on Tue 09 August 2016

modern sensor capture an astonishing dynamic range, namely some sony sensors or canon with magic lantern’s dual iso feature.

this is in a range where the image has to be processed carefully to display it in pleasing ways on a monitor, let alone the limited dynamic range of print media.

example images

use graduated density filter to brighten foreground

using the graudated density iop works well in this case since the horizon here is more or less straight, so we can easily mask it out with a simple gradient in the graduated density module. now what if the objects can’t be masked out so easily?

more complex example

this image needed to be substantially underexposed in order not to clip the interesting highlight detail in the clouds.

original image, then extreme settings in the shadows and highlights iop (heavy fringing despite bilateral filter used for smoothing). also note how the shadow detail is still very dark. third one is tone mapped (drago) and fourth is default darktable processing with +6ev exposure.

tone mapping also flattens a lot of details why this version already has some local contrast enhancement applied to it. this can quickly result in unnatural results. similar applies to colour saturation (for reasons of good taste, no link to examples at this point …).

the last image in the set is just a regular default base curve pushed by six stops using the exposure module. the green colours of the grass look much more natural than in any of the other approaches taken so far (including graduated density filters, these need some fiddling in the colour saturation …). unfortunately we lose a lot of detail in the highlights (to say the least).

this can be observed for most images, here is another example (original, then pushed +6ev):

exposure fusion

this is precisely the motivation behind the great paper entitled Exposure Fusion: what if we develop the image a couple of times, each time exposing for a different feature (highlights, mid-tones, shadows), and then merge the results where they look best?

this has been available in software for a while in enfuse

even with a gui called EnfuseGUI.

we now have this feature in darktable, too.

find the new fusion combo box in the darktable base curve module:

options are to merge the image with itself two or three times. each extra copy of the image will be boosted by an additional three stops (+3ev and +6ev), then the base curve will be applied to it and the laplacian pyramids of the resulting images will be merged.

results

this is a list of input images and the corresponding result of exposure fusion:

0ev,+3ev,+6ev:

0ev,+3ev:

0ev,+3ev,+6ev:

0ev,+3ev,+6ev:

0ev,+3ev:

conclusion

image from beginning:

note that the feature is currently merged to git master, but unreleased.

links