I've created a .bat file to run hugin. This is a windows command-tool file. To run this, hugin needs to be on the environmental path, and imagemagick should be as well
.bat file
rem Build panorama from call
rem Arg 1 - resultant file name
rem Arg 2 - name of files to be used in pano
rem
pto_gen -o %1.pto %2.jpg
cpfind -o %1.pto %1.pto
celeste_standalone -i %1.pto -o %1.pto
cpclean -o %1.pto %1.pto
autooptimiser -a -l -s -m -o %1.pto %1.pto
pano_modify --canvas=AUTO --crop=AUTO -o --center --straighten %1.pto
nona -m TIFF_m -o %1 %1.pto
enblend -o z%1.tif %100*.tif
del %1*.tif
rem convert z%1.tif -resize 7000x z%1r.jpg
To run this .bat file, you can do something like this:
pano_fix panores afile0*
That call would produce a panofile termed zpanores.tif.
In my use, I set up a .bat file to call the bat file:
convert file0436.jpg afile01.jpg
convert file0439.jpg afile02.jpg
..... convert more files
call pano_fix panores afile0*
Paul A Thompson