X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=scripts%2Fcreate_midP_masks.sh;h=845237d6a31dd3a4923fdc7acd4786b262b073c1;hb=578e4e5a84a390592ba6b2a7e8bff22dba19ccd0;hp=bb153c88db3a99a458d4485e46b74fcb8e300dc6;hpb=183a798552699138752e8e735a868779cb65feea;p=clitk.git diff --git a/scripts/create_midP_masks.sh b/scripts/create_midP_masks.sh index bb153c8..845237d 100755 --- a/scripts/create_midP_masks.sh +++ b/scripts/create_midP_masks.sh @@ -1,14 +1,6 @@ #! /bin/bash -x -MAX_THREADS=2 - -check_threads() -{ - while [[ $(jobs -p | wc -l) -ge $1 ]]; do - jobs - sleep 10 - done -} +source `dirname $0`/midp_common.sh extract_patient() { @@ -132,6 +124,9 @@ motion_mask() dir=`dirname $1` cd $dir + # import variables specific to each patient + source variables + resample_spacing=$2 resample_algo=$3 @@ -246,16 +241,13 @@ fi # # variables exported in this scope # -# mask_dir: directory where all mask are kept +# mask_dir: directory where all masks are kept # regmask_in_list: list of registration mask files (inside lungs) # regmask_out_list: list of registration mask files (outised lungs) # reg_in_list: list of registration image files (inside lungs) # reg_out_list: list of registration image files (outside lungs) # -# import variables specific to each patient -source variables - if [ $1 != "using-as-lib" ]; then motion_mask $1 $2 $3 fi