bricks_test.sh

来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· Shell 代码 · 共 33 行

SH
33
字号

# - copy some of the sub-bricks of the default stat file,
#   storing the history (command), and writing to a new 'f4.nii'
# - compare these nifti_image structs

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

NT=$1
DATA=$2

rm -fr ${DATA}/f4*

if ${NT} -keep_hist -cbl -infiles ${DATA}/stat0.nii'[178..$,0,1]' -prefix ${DATA}/f4
then
echo ""
else
echo "copy sub-bricks failed"
fi

if ${NT} -diff_nim -infiles ${DATA}/stat0.nii ${DATA}/f4.nii
then
echo diff failed '(no diffs found'
exit 1
else
echo diff succeeded
fi

exit 0

⌨️ 快捷键说明

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