From: Romulo Pinho Date: Mon, 8 Aug 2011 12:51:51 +0000 (+0200) Subject: bug in create_mid_masks-2.0.sh X-Git-Tag: v1.3.0~240^2~4^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5e08a7b53b689e7a13fdbc1db5df7a2c16af16d8;p=clitk.git bug in create_mid_masks-2.0.sh - "source ./variables" was in the wrong place --- diff --git a/scripts/create_midP_masks-2.0.sh b/scripts/create_midP_masks-2.0.sh index 68560ca..8a8babf 100755 --- a/scripts/create_midP_masks-2.0.sh +++ b/scripts/create_midP_masks-2.0.sh @@ -60,7 +60,7 @@ compute_motion_mask() FillingLevel=94 fi - clitkMotionMask -i $mask_dir_tmp/patient_$phase_nb.mhd -o $mask_dir_tmp/mm_$phase_nb.mhd --featureLungs $mask_dir_tmp/lungs_$phase_nb.mhd --upperThresholdLungs -400 --fillingLevel $FillingLevel --offsetDetect 0,-5,0 --pad --writeFeature=$mask_dir_tmp/feature_$phase_nb.mhd $MotionMaskExtra + clitkMotionMask -i $mask_dir_tmp/patient_$phase_nb.mhd -o $mask_dir_tmp/mm_$phase_nb.mhd --featureLungs $mask_dir_tmp/lungs_$phase_nb.mhd --upperThresholdLungs -400 --fillingLevel $FillingLevel --offsetDetect $MotionMaskOffsetDetect --pad --writeFeature=$mask_dir_tmp/feature_$phase_nb.mhd $MotionMaskExtra #--monitor=$mask_dir_tmp/monitor_$phase_nb.mhd } @@ -143,12 +143,12 @@ motion_mask() resample_spacing=$2 resample_algo=$3 - # import variables specific to each patient - source variables - dir=`dirname $1` cd $dir + # import variables specific to each patient + source ./variables + #set other global variables mask_dir="MASK-${resample_spacing}mm-$resample_algo" mask_dir_tmp="tmp.$mask_dir"