Linux Freesurfer脑数据分割

1. 安装见官网

https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall

注意每次使用之前都要设置环境变量

## bash
$> export FREESURFER_HOME=/usr/local/freesurfer
$> source $FREESURFER_HOME/SetUpFreeSurfer.sh

一劳永逸在/bashrc中设置也可以,我选择每次都设置,没有原因

2. 测试例程

$ cp $FREESURFER_HOME/subjects/sample-001.mgz .
$> mri_convert sample-001.mgz sample-001.nii.gz
...
reading from sample-001.mgz...
TR=7.25, TE=3.22, TI=600.00, flip angle=7.00
i_ras = (-0, -1, -0)
j_ras = (-0, 0, -1)
k_ras = (-1, 0, 0)
writing to sample-001.nii.gz...

你可能感兴趣的:(linux)