Skip to content

Commit

Permalink
textual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srikash committed Mar 22, 2021
1 parent f707a2b commit 2101bf0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions PadsOff
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function reportParameters() {
${bold} 0. Initialised with $n_threads threads ${normal}
--------------------------------------------------------------------------------
ANTs installation found : ${bold} $ANTSPATH ${normal}
FaceOff location : ${bold} $SCRIPT_DIR ${normal}
PadsOff location : ${bold} $SCRIPT_DIR ${normal}
Input data : ${bold} $input_file ${normal}
Using SyN? : ${bold} $syn ${normal}
DePad mask (output) : ${bold} $OUTPUT_MASK_NAME ${normal}
Expand Down Expand Up @@ -157,11 +157,10 @@ else
fi

if [ -z "$force_syn" ]; then
force_syn=1
syn="yes"
else
force_syn=0
syn="no"
else
syn="yes"
fi

################################################################################
Expand All @@ -187,7 +186,7 @@ ${ANTSPATH}/antsAI \
--metric MI[ $TEMPLATE_DIR/OASIS_T1w.nii.gz , $input_file , 32 , Regular , 0.25 ] \
--output $TEMPLATE_DIR/REG_INPUT_TO_TEMP_INIT.mat

echo " ${bold} 1. Mapped to template. ${normal}"
echo " ${bold} 0. Initialised to template. ${normal}"
echo "--------------------------------------------------------------------------------"

if [ $force_syn -eq 1 ]; then
Expand Down Expand Up @@ -241,7 +240,7 @@ if [ $force_syn -eq 1 ]; then
--transform [ $TEMPLATE_DIR/REG_INPUT_TO_TEMP_0GenericAffine.mat , 1 ] \
--verbose 0

echo " ${bold} 2. Deface mask created. ${normal}"
echo " ${bold} 2. DePad mask created. ${normal}"
echo "--------------------------------------------------------------------------------"

else
Expand Down Expand Up @@ -287,7 +286,7 @@ else
--transform [ $TEMPLATE_DIR/REG_INPUT_TO_TEMP_0GenericAffine.mat , 1 ] \
--verbose 0

echo " ${bold} 2. Deface mask created. ${normal}"
echo " ${bold} 2. DePad mask created. ${normal}"
echo "--------------------------------------------------------------------------------"

fi
Expand All @@ -306,7 +305,7 @@ ${ANTSPATH}/ImageMath \
$input_file \
$OUTPUT_MASK_NAME

echo " ${bold} 3. Defacing completed. ${normal}"
echo " ${bold} 3. DePadding completed. ${normal}"
echo "--------------------------------------------------------------------------------"

end_time0=$(date +%s)
Expand All @@ -326,5 +325,5 @@ rm $TEMPLATE_DIR/REG_INPUT_TO_TEMP_*.*
#
################################################################################

echo " ${bold} 4. FaceOff ended. It took $(($nettime0 / 3600))h:$(($nettime0 % 3600 / 60))m:$(($nettime0 % 60))s. ${normal}"
echo " ${bold} 4. PadsOff ended. It took $(($nettime0 / 3600))h:$(($nettime0 % 3600 / 60))m:$(($nettime0 % 60))s. ${normal}"
echo "================================================================================"

0 comments on commit 2101bf0

Please sign in to comment.