#!/bin/bash
#
# This file is provided under the terms of the 3-clausel BSD license.
# Please see the file License.txt for details.
#
# main script to run all motion compensation methods listed
# as scripts/miamc*
#
# run like
#
# ./work.sh <path-to-original-images> <output-path>
#
src=$1
out=$2
workdir=$(pwd)
contoursdir=$src/../contours/
pushd scripts
methods=$(ls *miamc*)
popd
for m in $methods ; do
if [ -x scripts/$m ]; then
echo "run method $m"
./scripts/$m "$workdir" "$src" "$out"
outdir="$out"/$(echo $m | sed -e "s/miamc/out/")
pushd outdir
popd
fi
done