enblend: warning: unable to run Dijkstra optimizer

2,298 views
Skip to first unread message

Hans Hermans

unread,
Nov 17, 2017, 4:55:03 AM11/17/17
to hugin and other free panoramic software
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?
100920.jpg

Bruno Postle

unread,
Nov 17, 2017, 5:34:41 AM11/17/17
to hugi...@googlegroups.com
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

Hans Hermans

unread,
Nov 17, 2017, 11:02:15 AM11/17/17
to hugin and other free panoramic software
adding --no-optimize works for the error in the output, but not for the black area.
The solution in the post "Enblend problem" dit the trick (--primary-seam-generator=nft)

Op vrijdag 17 november 2017 11:34:41 UTC+1 schreef Bruno Postle:
Reply all
Reply to author
Forward
0 new messages