My median stacking .executor doesn't work

Contents of the .executor file are as follows:

[General]
Description=Median of stacked images stitched into a panorama
Help=Output median image of stacked images, then stitch into a panorama
StepCount=4
IntermediateImageType=tif

[Step0]
Description=Remapping images
Type=remap
Arguments=-v -r ldr -m TIFF_m
Keep=0

[Step1]
Description=Calculating median
Type=stack
Input=all
Program=hugin_stacker
Result=%prefix%.tif
Arguments=--output=%result% --mode=median %input%
Keep=0

[Step2]
Description=Blending with enblend
Type=merge
Input=stacks
Program=enblend
Result=%prefix%.tif
Arguments=-f%size% --output=%result% %input%
WrapArgument=-w

[Step3]
Description=Updating metadata
Type=exiftool
Result=%prefix%.tif
Arguments=-overwrite_original -TagsFromFile %image0% -ImageDescription -Make -Model -Artist -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -UserComment -ColorSpace -OwnerName -SerialNumber %result%

All I get is “queue is empty” error message. :thinking: hugin_stacker works by themselves, so does everything else, but not in tandem. Here’s the .pto file: # hugin project file#hugin_ptoversion 2p f2 w16000 h8000 v360 E-5.93604 R0 - Pastebin.com

Any ideas of what I am doing wrong here?

Well, the mistake was a simple one, here’s the working script:

[General]
Description=Median of stacked images stitched into a panorama
Help=Output median image of stacked images, then stitch into a panorama
StepCount=4
IntermediateImageType=tif

[Step0]
Description=Remapping images
Type=remap
Arguments=-v -r ldr -m TIFF_m

[Step1]
Description=Calculating median
Type=stack
Program=hugin_stacker
Result=%prefix%-median.tif
Arguments=--output=%output% --mode=median %input%
Keep=1

[Step2]
Description=Blending with enblend
Type=merge
Input=stacks
Program=enblend
Result=%prefix%.tif
Arguments=-f%size% --output=%result% %input%
WrapArgument=-w

[Step3]
Description=Updating metadata
Type=exiftool
Result=%prefix%.tif
Arguments=-overwrite_original -TagsFromFile %image0% -ImageDescription -Make -Model -Artist -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -UserComment -ColorSpace -OwnerName -SerialNumber %result%

Stacking images is very handy when dealing with the night sky. Better signal to noise ratio can be had even with three images and the exposure time can be kept short so that star trailing can be prevented. Median stacking also removes satellite and plane trails.

3 Likes