Does not work correctly with Hugin, better use directly enfuse.
If image were taken with a tripod and are already aligned, directly used enfuse:
#!/bin/bash n_input=$# inputs=($*) output=`echo ${inputs[0]} | sed -r "s@(.*_[0-9]+)[^/]*\\$@\1@"`-`echo ${inputs[$(($n_input-1))]} | sed -r "s@.*_[0-9]+([0-9]{2})[^/]*\\$@\1@"`.jpg enfuse -o $output ${inputs[*]} # fixme because hugin 2011.04 creates buggy jpg currently convert $output $output
If you didn't use a tripod, or if the clouds are moving fast, align images before:
#!/bin/bash n_input=$# inputs=($*) output=`echo ${inputs[0]} | sed -r "s@(.*_[0-9]+)[^/]*\\$@\1@"`-`echo ${inputs[$(($n_input-1))]} | sed -r "s@.*_[0-9]+([0-9]{2})[^/]*\\$@\1@"`.jpg prefix=AHDR_`echo ${inputs[*]} | sed "s@[ ]*[^ ]*/@_@g"`_ align_image_stack -a /mnt/ram/${prefix} ${inputs[*]} enfuse -o $output /mnt/ram/${prefix}*.tif rm -f /mnt/ram/${prefix}*.tif # fixme because hugin 2011.04 creates buggy jpg currently convert $output $output