X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=scripts%2Fregistration.sh;h=40d5fbe41dc7e0467faf028caab8bcffcb636f5d;hb=c167ace7ba7780e29e52c4450d69c3123c9bbcee;hp=397965460a11b4b3da76802c4ef41d57265549de;hpb=34af28a29bf9c7816747f8507c4a9985354811f8;p=clitk.git 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