Ok, I am using Hugin 2015.0.0.cdefc6e53a58 with Windows. 
I've many script which work but don't do what i want.
I hope it would, take tiff photos in a folder, stitch them as a panorama 
with all the settings already fixed, and print the output in a special 
folder (All of this, without any intervention of me). 

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/398f75a6-62f8-4333-a67c-2864b90a4d32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/sh
# create a project file against all images in script directory
pto_gen -o project.pto *.tif

# find all control points, using multirow and celeste (cloud detection)
cpfind -o project.pto --multirow --celeste project.pto

# clean up control points
cpclean -o project.pto project.pto

# line find analysis
linefind -o project.pto project.pto

# auto optimise
autooptimiser -a -m -l -s -o project.pto project.pto

# modify the canvas to use the source image height, and a realistic target width
pano_modify --canvas=5200x720 -s -o project.pto project.pto

# generate make file
pto2mk -o project.mk -p output project.pto

# run make
make -f project.mk all

# convert to jpeg
#convert output.tif output.jpg
nona -m TIFF_m -o project project.pto
#!/bin/bash

#Setting Hugin Path"
#export HUGIN_PATH="/Applications/Hugin/Hugin.app/Contents/MacOS/"

echo "*** Number of PANOS $PANO_NUM_MAX *** "
export PANO_NUM_MAX=6
export FORMAT=tif

for PANO_NUM in $(seq 1 $PANO_NUM_MAX)
do
    
    echo "*** Setting PANO $PANO_NUM of $PANO_NUM_MAX *** "
    #Setting File Names"
    export PANO_FILES="$(ls *Pano$PANO_NUM.$FORMAT)"
    export PANO_FILES_TMP1="$(ls -1 *Pano$PANO_NUM.$FORMAT | head -n1 | cut -d . -f 1)"
    export PANO_FILES_TMP2="$(ls -1 *Pano$PANO_NUM.$FORMAT | tail -n1 | cut -d . -f 1)"
    export PANO_NAME=$(echo "$PANO_FILES_TMP1"_"$PANO_FILES_TMP2".pto)
    echo "*** Merging $PANO_FILES *** " >> $PANO_NAME.log
    echo "*** As a name of $PANO_NAME *** " | tee >> $PANO_NAME.log

    echo "*** Creating pto file *** " | tee >> $PANO_NAME.log
    pto_gen -o $PANO_NAME $PANO_FILES >> $PANO_NAME.log

    echo "*** Finding control points *** " | tee >> $PANO_NAME.log
    icpfind -o $PANO_NAME $PANO_NAME >> $PANO_NAME.log

    echo "*** Remove control points in clouds *** " | tee >> $PANO_NAME.log
    celeste_standalone -t 0.5  -o $PANO_NAME -i $PANO_NAME >> $PANO_NAME.log

    echo "*** Statistical cleaning of control points *** " | tee >> $PANO_NAME.log
    cpclean -o $PANO_NAME $PANO_NAME >> $PANO_NAME.log

    echo "*** Searching for vertical lines *** " | tee >> $PANO_NAME.log
    linefind -o $PANO_NAME $PANO_NAME  >> $PANO_NAME.log

    echo "*** Checking all images are connected *** " | tee >> $PANO_NAME.log
    checkpto $PANO_NAME >> $PANO_NAME.log

    echo "*** Optimise project *** " | tee >> $PANO_NAME.log
    autooptimiser -a -m -l -s -o $PANO_NAME $PANO_NAME >> $PANO_NAME.log

    echo "*** Setting output options *** " | tee >> $PANO_NAME.log
    pano_modify --canvas=70%% --crop=AUTO -o $PANO_NAME $PANO_NAME >> $PANO_NAME.log

done

Reply via email to