In search of automated focus blend software

Hi All,
I’am a happy Darktable user. At this moment I use latest version 3.1.0.
Next to Darktable and GIMP I use a script of Pat David (Aligne and enfuse) to focus blend images.
I have read that a lua script would work to make it easier and stay in Darktable to exposure or focus blend. But that lua script (GIT version) does not function in the 3.1.0 version. Is it possible to make the lua script functional in 3.1.0 of Darktable ? or is another software available for focus blending?
I appreciate any reaction.
Greetings.
Ruud Maas

Hello @RMA

What do you mean by “focus blend”?
I suppose it is not a synonymous of “focus stacking”, right?

To make is short, on Windows 10, I have tried several softwares for focus stacking: Zerene and Helicon, in particular.
However, they are all commercial softwares (not open source…).

Lately, I have been trying Picolay [1], by Heribert Cypionka, which looks quite promising.
It even accepts RAW files (e.g. Nef from Nikon).
It is freeware stuff but you can download it and work with it without being forced to pay for it.
It is developed in a German University from what I have gathered so far.
Maybe, it even works on Linux (through Wine). Never tested myself…

BTW, the best would be to have the Darktable Lua script working on the 3.1 version… :slight_smile:
From what I have gathered Enfuse [2] is no longer developed and, personally, I have never tested it myself.

[1] http://www.picolay.de/
[2] Mercurial Repository: p/enblend/code: a7a247e1e64b NEWS

Thanks for the reaction. I mean blending the same image but with a different focus point. So for getting everything sharp in the blended mages. My fuji camera does have a focus stack function. So I’am search tot blend the images.

If you want to stay with free software, then using enblened/enfuse is the only tool available.

Of course @patdavid has already written about this: https://patdavid.net/2013/01/focus-stacking-macro-photos-enfuse/

Hello @paperdigits

then using enbkene/enfuse

I may be totally mistaken but I suppose there is a typo here: enbkene
What the heck is this one? :slight_smile:
Just googled to no avail :slight_smile:

Hi Mica,
Do you know the person who could make the lua script for Darktable functional voor the latest version of Darktable (3.1.0).
greetings,
Ruud

EDIT:

Maybe, it even works on Linux (through Wine). Never tested myself…

Short update to self.
Just checked further on-line and it does look as Picolay can run on Linux as well:

I had to translate from German to English, with Chrome, to understand this post but here is the result from this post:
“I would like to report that Picolay runs perfectly on Linux under wine in the 64-bit version, by Martin”

Its enblend… Stupid phone!

You can be the start of the solution by saying what errors you’re getting and if the script works for the latest stable.

Hi Mica,
I have Darktable 3.1.0 (latetst GIT-version) installed on KDE MANJARO. When I install the GIT-version LUA script I do not see the blending functionality in Darktable. So if it is not installed.
Greetings,
Ruud

Have you added the scripts to your luarc file?

The Luarc file consist of the following scripts:
require “official/yield”
require “official/image_path_in_ui”
require “contrib/hugin”
require “contrib/clear_GPS”
require “contrib/copy_attach_detach_tags”
require “contrib/database_statistics”
require “examples/moduleExample”
require “examples/preferenceExamples”
require “contrib/enfuse_pro”

I added “require “contrib/enfuse_pro””.

In the Lua directory the subdirectory “contribute” contains the following lua’s:
file:///home/ruudm/.config/darktable/lua/contrib/video_ffmpeg.lua
file:///home/ruudm/.config/darktable/lua/contrib/transfer_hierarchy.lua
file:///home/ruudm/.config/darktable/lua/contrib/slideshowMusic.lua
file:///home/ruudm/.config/darktable/lua/contrib/select_untagged.lua
file:///home/ruudm/.config/darktable/lua/contrib/RL_out_sharp.lua
file:///home/ruudm/.config/darktable/lua/contrib/rename-tags.lua
file:///home/ruudm/.config/darktable/lua/contrib/README
file:///home/ruudm/.config/darktable/lua/contrib/rate_group.lua
file:///home/ruudm/.config/darktable/lua/contrib/quicktag.lua
file:///home/ruudm/.config/darktable/lua/contrib/pdf_slideshow.lua
file:///home/ruudm/.config/darktable/lua/contrib/passport_guide.lua
file:///home/ruudm/.config/darktable/lua/contrib/OpenInExplorer.lua
file:///home/ruudm/.config/darktable/lua/contrib/LabelsToTags.lua
file:///home/ruudm/.config/darktable/lua/contrib/kml_export.lua
file:///home/ruudm/.config/darktable/lua/contrib/image_stack.lua
file:///home/ruudm/.config/darktable/lua/contrib/hugin.lua
file:///home/ruudm/.config/darktable/lua/contrib/HDRMerge.lua
file:///home/ruudm/.config/darktable/lua/contrib/gpx_export.lua
file:///home/ruudm/.config/darktable/lua/contrib/gimp.lua
file:///home/ruudm/.config/darktable/lua/contrib/geoToolbox.lua
file:///home/ruudm/.config/darktable/lua/contrib/geoJSON_export.lua
file:///home/ruudm/.config/darktable/lua/contrib/fujifilm_ratings.lua
file:///home/ruudm/.config/darktable/lua/contrib/face_recognition.lua
file:///home/ruudm/.config/darktable/lua/contrib/ext_editor.lua
file:///home/ruudm/.config/darktable/lua/contrib/enfuseAdvanced.lua
file:///home/ruudm/.config/darktable/lua/contrib/cr2hdr.lua
file:///home/ruudm/.config/darktable/lua/contrib/copy_attach_detach_tags.lua
file:///home/ruudm/.config/darktable/lua/contrib/CollectHelper.lua
file:///home/ruudm/.config/darktable/lua/contrib/clear_GPS.lua
file:///home/ruudm/.config/darktable/lua/contrib/autostyle.lua
file:///home/ruudm/.config/darktable/lua/contrib/AutoGrouper.lua
file:///home/ruudm/.config/darktable/lua/contrib/enfuse_pro.lua

Can you use any of the other lua scripts you have?

No I only can use hugin the rest I do not see in a module like " export"

If you start darktable from the terminal with darktable -d lua what does the terminal output say?

Darktable starts.
Terminal gives following:
[ruudm@ruud-ax370gaming3 ~]$ darktable -d lua

(darktable:3704): Gtk-WARNING **: 17:43:36.907: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:3704): Gtk-WARNING **: 17:43:36.907: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:3704): Gtk-WARNING **: 17:43:36.907: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:3704): Gtk-WARNING **: 17:43:36.907: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn’t be used anymore. It will be removed in a future version
1,096196 LUA ERROR : /home/ruudm/.config/darktable/luarc:6: module ‘contrib/database_statistics’ not found:
no field package.preload[‘contrib/database_statistics’]
no file ‘/usr/share/lua/5.3/contrib/database_statistics.lua’
no file ‘/usr/share/lua/5.3/contrib/database_statistics/init.lua’
no file ‘/usr/lib/lua/5.3/contrib/database_statistics.lua’
no file ‘/usr/lib/lua/5.3/contrib/database_statistics/init.lua’
no file ‘./contrib/database_statistics.lua’
no file ‘./contrib/database_statistics/init.lua’
no file ‘/usr/share/darktable/lua/contrib/database_statistics.lua’
no file ‘/home/ruudm/.config/darktable/lua/contrib/database_statistics.lua’
no file ‘/usr/lib/lua/5.3/contrib/database_statistics.so’
no file ‘/usr/lib/lua/5.3/loadall.so’
no file ‘./contrib/database_statistics.so’

In your luarc file, remove the database_statistics line, then start darktable with the same command.

Many Thanks Mica,

Now Darktable starts and in export module the DRI or DFF menu is visible in export Module.

Terminal shows following:

[ruudm@ruud-ax370gaming3 ~]$ darktable -d lua

(darktable:4387): Gtk-WARNING **: 17:49:23.675: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:4387): Gtk-WARNING **: 17:49:23.675: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:4387): Gtk-WARNING **: 17:49:23.675: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn’t be used anymore. It will be removed in a future version

(darktable:4387): Gtk-WARNING **: 17:49:23.675: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn’t be used anymore. It will be removed in a future version
1,258786 LUA ERROR Enfuse pro plugin version 2.1.6 loaded

I am going to test the lua.

Lua script does function .
Many thanks again Mica.
Greetings from the Netherlands

Now you have more to work on during the lock down :stuck_out_tongue: