# /bin/csh -f # # Produce overlays for all frames of one sequence if ($# < 1) then echo "Usage: $0:t sequence_name" echo "Produce overlays for all frames of one sequence" echo "Seguence_name must be in form of ID/id_0[1-4], eg. BP/bp_01" exit endif cd overlays mkdir $1:t_ovl cd $1:t_ovl ln -s $lip_tracking/results/$1:t_spl/ gf_dir ln -s $database/$1:t_v/ db_dir set temp = /tmp/$$ foreach j (db_dir/?.pgm db_dir/??.pgm db_dir/???.pgm) set idn = `expr $j : "$db_dir:t\(.*\).pgm"` joinSpans < gf_dir/$idn:t.gf >$temp gf2pgmovl -i $j -g $temp -name Segment2 -w 2 -o $idn:t.ovl.pgm end rm -f *.ovl r_gf2* ??_dir cd .. cd ..