darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.69k stars 1.14k forks source link

HDR alignment #10523

Closed Pizzacutter-at-tty3 closed 2 years ago

Pizzacutter-at-tty3 commented 2 years ago

Create HDR in Lighttable is quite nice, it allows me to merge .NEF images and straight work on them in the Darkroom, however, I have a hard time getting images that are alligned SOOC. Is Darktable going to support alignment? It would greatly help as I did not find any other working tool on Linux that would export to raw or at least have satisfactory results as a jpg or a tiff.

ralfbrown commented 2 years ago

Have you looked at hugin? It's not just for stitching panoramas, it also does HDR merging with image alignment and focus stacking. dt has a Lua script to integrate it.

Pizzacutter-at-tty3 commented 2 years ago

I remember now that there is some CLI stuff but that was too tedious to get roughly what I want. I'll try that lua plugin and comment how I like it (if I won't forget...)

moy commented 2 years ago

Proper image alignment is a non-trivial thing, and dt is unlikely to ever be as good as Hugin with that. The HDR feature of dt is a simple-to-implement one (IIRC, merge is done before demosaic, only very simple per-pixel maths involved) and can't just be "improved" to support alignment, one would need a totally different algorithm.

IOW, either use a tripod or use Hugin ;-) (possibly using the lua script https://darktable-org.github.io/luadocs/lua.scripts.manual/scripts/contrib/hugin/).

Pizzacutter-at-tty3 commented 2 years ago

It took me a while, but I eventually figured it out. It works very well :smile: That enfuse in export module (DRI/DFF thing) is quite confusing though. Speaking of that, could the whole enfuse script be a part of Darktable by default? Maybe with some kind of tutorial for new users... so it's a bit easier to get it going and expand capabilities of Darktable.

HansBull commented 2 years ago

hdrmerge can already compensate small disalignments, so this should not be too hard to implement.

AyushGupta10 commented 2 years ago

@aurelienpierre had written a post about creating HDR/ Panorama using hugin and darktable. Here is the link: https://discuss.pixls.us/t/hugin-pano-hdr-darktable-in-scene-referred/27087