Skip to content

Commit

Permalink
alt spelling script
Browse files Browse the repository at this point in the history
  • Loading branch information
srikash committed Mar 22, 2021
1 parent af434c1 commit 27cb0f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 3dMPRAGEize
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,16 @@ if [ "$re_bias" = 0 ]; then
-overwrite \
-prefix ${inv2_basename}_bfc.nii \
$inv2_image

out_name=${uni_basename}_unbiased_clean.nii

else
echo ""
echo "++ Reintroducing bias-field."
echo ""
3dcopy $inv2_image ${inv2_basename}_bfc.nii

out_name=${uni_basename}_rebiased_clean.nii

fi

Expand All @@ -138,7 +142,7 @@ echo ""
-a $uni_image \
-b ${inv2_basename}_intnorm.nii \
-expr "a * b" \
-prefix ${uni_basename}_unbiased_clean.nii
-prefix $out_name

# Remove intermediate files
rm ${inv2_basename}_bfc.nii ${inv2_basename}_intnorm.nii
Expand Down

0 comments on commit 27cb0f7

Please sign in to comment.