# This script is written to combine all the commands of sgm stereo flow. We need extensions such as .png.
if test $# -lt 4 ; then
echo "Usage: runstereoflow left_image_t0 right_image_t0 left_image_t1 calibration"
else
echo "running stereo"
./sgmstereo $1 $2
echo "estimating fundamental matrix"
./siftfund $1 $3
echo "running flow"
l=$1
ln=${l%.*}
f="_fund.dat"
fn=$ln$f
./sgmflow -i $1 $3 $4 $fn
echo "estimating alpha"
ld="_left_disparity.png"
lld=$ln$ld
lf="_flow.png"
llf=$ln$lf
m="_mot.dat"
lm=$ln$m
./estalpha $lld $llf $4 $fn $lm
echo "running stereo flow"
./sgmstereoflow $1 $2 $3 $lld $llf $lm
echo "running smooth fit"
./smoothfit $1 $lld $lm
fi
Sunday, July 13, 2014
A simple script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment