From: Romulo Pinho Date: Fri, 5 Aug 2011 11:09:21 +0000 (+0200) Subject: registration script more robust to parallelization X-Git-Tag: v1.3.0~240^2~7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=879e82966d4d44ab18a79051ca0c065fdd8c0793;p=clitk.git registration script more robust to parallelization - elastix's parameter file is now created with a suffix --- diff --git a/scripts/registration.sh b/scripts/registration.sh index 3979654..40d5fbe 100755 --- a/scripts/registration.sh +++ b/scripts/registration.sh @@ -88,13 +88,14 @@ registration_elastix() echo "Computing ELASTIX $reference -> $target ..." exec_dir=`which elastix` exec_dir=`dirname $exec_dir` + suffix=${nb_samples}_${nb_iter}_${nb_levels} cat $exec_dir/params_BSpline.txt | sed -e "s++$nb_iter+" \ -e "s+++" \ -e "s++$hist_bins+" \ -e "s++$nb_levels+" \ -e "s++$nb_samples+" \ -e "s++$sampling_algo+" \ - -e "s++$spacing+" > params_BSpline.txt + -e "s++$spacing+" > params_BSpline_${suffix}.txt vf_dir=`dirname $vf` vf_base=`basename $vf .mhd` @@ -102,7 +103,7 @@ registration_elastix() result_base=`basename $result .mhd` # image registration - cmd="elastix -f $reference -m $target -fMask $mask_ref -mMask $mask_targ -out $result_dir -p params_BSpline.txt" + cmd="elastix -f $reference -m $target -fMask $mask_ref -mMask $mask_targ -out $result_dir -p params_BSpline_${suffix}.txt" $cmd > /dev/null # generate vector field