I would first check to see if the autooptimiser stage had placed one of the 
photos in a position that was unstitchable. Look for something weird in the 
individual remapped output images from the nona step.

If you really want this script to always succeed, then you can turn off seam 
optimisation with the enblend --nooptimize parameter. Seam optimisation is only 
useful if you have moving objects in the scene.

-- 
Bruno


On 17 November 2017 09:55:03 GMT+00:00, Hans Hermans wrote:

>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?

-- 
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 hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/FABDED11-5B9E-4DA6-B950-9E9AEE2B2544%40postle.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to