Do it with for loop:
for sub in *;
do echo $sub;
3dSkullStrip -input ${sub}/T1_${sub}_S0001.nii -prefix ${sub}/T1_${sub}_S0001_3DSS.nii -mask_vol;
done
for sub in *;
do echo $sub;
3dSkullStrip -input ${sub}/${sub}_3T_T1w_MPR1.nii -prefix ${sub}/${sub}_3T_T1w_MPR1_3DSS.nii -mask_vol;
done
for sub in *;
do echo $sub;
3dSkullStrip -input ${sub}/T1_${sub}_V2.nii -prefix ${sub}/T1_${sub}_V2_3DSS.nii -mask_vol
done
BEaST
*Done? Need to test.
- minc库位置 /opt/minc-itk4/lib
- beast-library-1.1位置 /opt/minc-itk4/share/beast-library-1.1
Usage:
1. $ source /opt/minc-itk4/minc-toolkit-config.sh
2. PATH=$PATH:/opt/minc-itk4/bin
nii2mnc
/opt/minc/bin/mincbeast /opt/minc/share/beast-library-1.0/ ~/Desktop/test.mnc ~/Desktop/output.mnc
return error
ERROR! Mask dimension does not match image dimension!