Recently I have been working on a couple of scripts that automate the process of merging several images, to improve the visual output in different ways.
Both scripts use the batch version of photo flow and various tools from the Hugin suite to process the input images, align them, and merge back the aligned images.
The first script allows to blend several bracketed shots into a single HDR image with preserved highlights and improved shadow detail, pretty much following the philosophy of ZeroNoise.
The script takes a series of RAW images as input, and generates a photoflow .pfi file which performs the actual blending.
This script had been already introduced in this other thread:
The second script is currently geared toward astrophotography. It allows to read several images in FITS format and to combine them via median stacking to significantly reduce the noise and improve the details in the image. However, it can be easily adapted to other image formats, like RAW or TIFF.
Currently, the main limitation probably comes from the fact that the two scripts need a photoflow executable from the non-default linear_gamma branch, that is not routinely packaged.
will process all the .NEF files in the current folder and will produce a
blend.pfifile that contains the assembled HDR image to be processed with photoflow
will process all the .FITS files in the current folder and will produce a
stack.tiffile containing the result of the median blending.
One interesting feature of the second script is that the median blending command can process and stack several high-resolution images without requiring a lot of RAM (only disk space for temporary files).
The bash scripts are relatively simple, and therefore I think they can be easily adapted to other situations/input files. If you are interested, just let me know and I will be more than happy to provide help and assistance!