X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=scripts%2Fcreate_midP_masks-2.0.sh;h=f5738e0107c464a68fd0e97cba98a7e2719bd193;hb=5bff4d89c8ca42336267c36974e9ceb6fe2ac843;hp=68560cae1c76750fbe9319f95dc224d53c5fa6eb;hpb=66d21002b1ea9e439731fa624836705f8bc34847;p=clitk.git diff --git a/scripts/create_midP_masks-2.0.sh b/scripts/create_midP_masks-2.0.sh index 68560ca..f5738e0 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,14 @@ 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 + if test -e ./variables; then + source ./variables + fi + #set other global variables mask_dir="MASK-${resample_spacing}mm-$resample_algo" mask_dir_tmp="tmp.$mask_dir"