⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comment_test.sh

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 SH
字号:
#!/bin/sh

if [ $# -lt 2 ]
then
echo Missing nifti tool and Binary directory name
exit 1
fi

NT=$1
DATA=$2


# add some comment and afni extensions, then display them
if \
${NT} -keep_hist -prefix ${DATA}/f4.comment -infiles ${DATA}/anat0.nii   \
           -add_comment '4 slice time series'                      \
           -add_afni_ext 'and an AFNI extension'                   \
           -add_comment 'how about a question AND a comment?'
then
echo ""
else
echo "add comment failed"
exit 1
fi

if ${NT} -disp_ext -infiles ${DATA}/f4.comment.nii
then
echo ""
else
echo "failed"
exit 1
fi

if ${NT} -cbl -infiles ${DATA}/f4.comment.nii -prefix ${DATA}/f4.to.clear.nii
then
echo ""
else
echo "failed"
exit 1
fi

if ${NT} -overwrite -strip -infiles ${DATA}/f4.to.clear.nii
then
echo ""
else
echo "failed"
exit 1
fi

if ${NT} -disp_ext -infiles ${DATA}/f4.to.clear.nii
then
echo ""
else
echo "failed"
exit 1
fi

if ${NT} -diff_nim -infiles ${DATA}/f4.comment.nii ${DATA}/f4.to.clear.nii
then
echo "failed -- no changes found"
exit 1
else
echo "diff succeed -- found changes"
fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -