Trouble merging HDR images

Hi guys,

I’m having some subtle issues merging HDR images that are bothering me. When I do a merge of my three exposures, it seems to combine them in a way that makes a sort of “haze” on the shadows of the image.

Here is the longest exposure of part of the image:

Here is the shortest:

And here is the DNG HDR resulting image:

It’s somewhat hard to see but the final image keeps this blue haze in the shadows that seems to be originating from the noise of the shortest exposure being combined with the longest exposure. Is there any way to just keep the shadows from the longest exposure while retaining the highlights from the shortest exposure without combining the shadows of every image as if they are of uniform importance?

hey @octet welcome to he community!

what method are you using to merge your images?

The default button in darktable isn’t very good as it doesn’t align the images before merging. If you’re not already using it, I highly recommend HDR Merge, there is a lua script to integrate it with darktable.

I was using the default button - I will try to get the HDR Merge script working now, thank you!

I know we may be getting somewhat off topic now, but I’m having trouble getting the lua script working. When I installed it it made me point the script to it’s own executable path in the lua folder, which I did, but when I click update it says it’s unsuccessful.

I see these messages while debugging lua from console, but nothing else despite seeing the update unsuccessful error


     1.5160 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils/debug.lua 
     1.5160 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils/debug.lua is already in search path, returning... 
     1.5160 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils/file.lua 
     1.5160 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils/file.lua is already in search path, returning... 
     1.5161 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils/log.lua 
     1.5161 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils/log.lua is already in search path, returning... 
     1.5161 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils.lua 
     1.5161 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils.lua is already in search path, returning... 
     1.5162 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils/string.lua 
     1.5162 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils/string.lua is already in search path, returning... 
     1.5162 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 516: line is /home/wcs/.config/darktable/lua/lib/dtutils/system.lua 
     1.5162 LUA DEBUG: script_manager.lua: ensure_lib_in_search_path: 519: /home/wcs/.config/darktable/lua/lib/dtutils/system.lua is already in search path, returning...

start darktable from the command line with darktable -d lua and then try and repeat the steps.

Ok, so I got it working, and I also experimented with a RAW DNG HDR from lightroom in darktable, and I’m seeing the “washed out” effect in every single image (Darktable DNG HDR, HDR Merge DNG HDR, Lightroom outputted DNG HDR)

DNG RAW HDR as seen in lightroom:

The exact same image, as seen in darktable:

Is there any way to fix this, or is it baked into the way that darktable deals with HDR images? No matter what editing methods I try I cannot get rid of the washed out effect.

You use the same tools as you normally would, but you’ll need to compress the dynamic range way more than you usually would.

Does your test image really need HDR tho?

How would you suggest I make the darktable image look like what lightroom is presenting? I’m struggling to get the same look. And yes unfortunately, there are bright windows and objects in the scene that I don’t want clipped.

I haven’t done an HDR image in a long time, if you can share your hdr, I’d be happy to provide a sidecar file

Use exposure to get midtones right (remember that darktable’s scene-referred workflow is centred around mid-grey). Then use filmic or sigmoid as usual, and tone equalizer, if needed. There’s nothing special to HDR input in darktable.