使用FSL下的bet2工具
$ bet2 <input> <output> [options]
$ bet2 T1.nii.gz skull_brain.nii.gz -f 0.15
使用linux下parallel操作,并行去除颅骨操作
parallel --xapply bet2 {1} ./{2}/skull_brain.nii.gz -f 0.15 :::: f.txt :::: sub.txt
其中f.txt表示<input>要进行头骨去除操作的NIfTI文件
sub.txt表示<output>存储的目录
Main bet2 options:
-o generate brain surface outline overlaid onto original image
-m generate binary brain mask
-s generate rough skull image (not as clean as what betsurf generates)
-n don't generate the default brain image output
-f <f> fractional intensity threshold (0->1); default=0.5; smaller values give larger brain outline estimates
-g <g> vertical gradient in fractional intensity threshold (-1->1); default=0; positive values give larger brain outline at bottom, smaller at top
-r <r> head radius (mm not voxels); initial surface sphere is set to half of this
-c < x y z> centre-of-gravity (voxels not mm) of initial mesh surface.
-t apply thresholding to segmented brain image and mask
-e generates brain surface as mesh in .vtk format.```