Image Stacking for Noise Reduction

I was hoping for stacking to be built in, seen as HDR creation is but HDG-Merge looks like it is the option. Does anyone know if there is a LUA script to export directly from dt to hdr-merge and then import the resultant image. Sorry but I have no coding abilities at all so have no idea of how to do this myself.

I don’t have the time to write such a script at the moment. But I’ll help you as much as I can.

There is an enfuse script to create HDR images, and we have a gimp and an hugin export script, that could be useful as a starting point:

I placed enfuse.lua into my lua directory and put requuire “enfuse” into the luarc file but when I start dt. I cannot find where to run the enfuse script. Lua is anabled as per darktable --version

Try running darktable -d lua and see if any errors are shown.

That being said, could we please come to the agreement that enfuse doesn’t produce HDR files? Thanks.

1 Like

Apologies, I got it sorted. I had the file location in the wrong place.

Looks like there is no hdrmerge for ubuntu 16.10 only 16.04 in the ppa. Gonna see if I can find a deb file I can install

That being said, could we please come to the agreement that enfuse doesn’t produce HDR files? Thanks.

It was someone called houz who committed on 2 Mar 2016 this lines:

This script uses enfuse to merge the selected images into one HDR and imports the result.
It only works on ldr images (like, JPEG).

Perhaps you should fix the description in the script. :wink:

Oooooh :scream:

1 Like

What a loser. My excuse being that I wrote the script for someone else and never used enfuse myself before, so I trusted the users input about what it’s good for in the first place. :smiley:

3 Likes

Spoken like a true developer :wink: how could you be wrong?!

Anyhow, does anyone think a lua script to do stacking (for noise reduction) with say hdrmerge or something is possible. I will look to see how hard it is to start learning lua if it’s possible.

If you can do it with HDRMerge it should be possible to write a dt Lua script.
This is how your ToDo list sould look like:

  1. Install HDRMerge.

  2. Test if it is possible with HDRMerge.

  3. Try do do it via the commandline:
    HDRMerge User Manual v0.4.5

  4. Write the Lua script.

  5. Push the Lua script to the githup repository.

Lua is definitely a nice language to learn. I’ve read a hardcopy of Programming in Lua (for evaluation for a project that wasn’t realized) and there are some eye-opening “tricks” in it even for an experienced programmer coming from non-functional languages. Certainly worth a read.

There is a new and better enfuse script proposed on the dev mailing list, maybe worth a look: [darktable-dev] Darktable 2.2.X Plugin Enfuse Professional

1 Like

That looks cool. I keep get a compression exception error though. It did work once with 8-bit uncompressed (non-gpu remapped) format. I will put up a error report.

I was so impressed with Holger’s LUA script I did this week’s episode on it. Not sure if Holger is part of this community, but I sure appreciate the effort.

http://weeklyedit.com/holgers-lua-plugin-enfuse/

1 Like

Fantastic Harry!

In step 2 you say “exivtool” but I think you mean “exiftool.”

Ha… fixed :wink:

@harry_durgin is the script working for you everytime. Im getting errors on and off when using it for hdr. Cant seem to getbit to use 16bit tif. Have to use 8 bit but still get random failures

I haven’t tried all the options, but I have been using 16bit tif without issues. Could it be an issue with a package needing updating?