Hello,
I am getting the following error by processing panoramic images with a bash script and the resulting image is missing some parts (see attached image):
enblend: info: loading next image: panorama0000.tif 1/1
enblend: info: loading next image: panorama0001.tif 1/1
enblend: warning: unable to run Dijkstra optimizer
enblend: note: seam-line end point outside of cost-image
enblend: note: contour #1 of 1, segment #1 of 1, vertex #201 of 643
enblend: info: loading next image: panorama0002.tif 1/1
enblend: info: loading next image: panorama0003.tif 1/1
enblend: info: loading next image: panorama0004.tif 1/1
enblend: warning: unable to run Dijkstra optimizer
enblend: note: seam-line end point outside of cost-image
enblend: note: contour #1 of 2, segment #1 of 2, vertex #2 of 58
enblend: warning: unable to run Dijkstra optimizer
enblend: note: seam-line end point outside of cost-image
enblend: note: contour #1 of 2, segment #2 of 2, vertex #11479 of 11480
enblend: info: writing final output
The script is as followed:
#!/bin/bash
DATE=`date +"%Y-%m-%d"`
for (( ; ; ))
do
MAP=`date +"%H%M%S"`
cd ~/Afbeeldingen/eyefi
count=$(ls -1 --file-type | grep -v '/$' | wc -l)
echo $count
if [ "$count" -ge 5 ]; then
echo "start stichting"
cd ~/Afbeeldingen/eyefi
i=100;
shopt -s nullglob;
for f in *.jpg *.gif *.ARW *.arw *.JPG *.JPEG *.GIF; do
mv -- "$f" "$i.${f##*.}";
((i++));
done
cd ../
mkdir ./panorama/$DATE
mkdir ./panorama/$DATE/$MAP
cp ~/bin/panoscripts/panorama1.pto ./panorama/$DATE/$MAP/
cp ~/bin/panoscripts/panorama-planet.pto ./panorama/$DATE/$MAP/
cp ~/bin/panoscripts/panorama-planet2.pto ./panorama/$DATE/$MAP/
# cp ~/bin/panoscripts/naam.tif ./panorama/$DATE/$MAP/
mv ./eyefi/100.JPG ./panorama/$DATE/$MAP/
mv ./eyefi/101.JPG ./panorama/$DATE/$MAP/
mv ./eyefi/102.JPG ./panorama/$DATE/$MAP/
mv ./eyefi/103.JPG ./panorama/$DATE/$MAP/
mv ./eyefi/104.JPG ./panorama/$DATE/$MAP/
cd ./panorama/$DATE/$MAP/
cpfind --prealigned -o panorama1.pto panorama1.pto
cpclean -o panorama1.pto panorama1.pto
pto_var --opt y,p,r,v,b,c,d,e -o panorama1.pto panorama1.pto
autooptimiser -n -l -q -o panorama1.pto panorama1.pto
#hugin panorama1.pto
nona -o panorama panorama1.pto
enblend -o panorama.tif panorama0000.tif panorama0001.tif panorama0002.tif panorama0003.tif panorama0004.tif
convert panorama.tif -gravity north -extent 13582x6791 panorama.tif
nona -o panorama-planet panorama-planet.pto
convert panorama-planet0000.tif \( +clone -threshold -1 -negate -fill white -draw "circle 1000,1000 1000,0" \) -alpha off -compose copy_opacity -composite -flop panorama-planet.tif
nona -o panorama-planet2 panorama-planet2.pto
convert panorama-planet20000.tif -gravity south -extent 13582x1000 panorama2.tif
composite -geometry +0+5791 panorama2.tif panorama.tif panorama.tif
convert panorama.tif ../$MAP.jpg
#rm *.tif *.pto
fi
sleep 3
done
Any idea what is going wrong or how i can optimize the script?