在https://surfer.nmr.mgh.harvard.edu/fswiki/MacOsInstall 中下载软件安装
安装好之后,在terminal中输入:
export FREESURFER_HOME=/Applications/freesurfer
source $FREESURFER_HOME/SetUpFreeSurfer.sh
然后在这个网站下载license:https://surfer.nmr.mgh.harvard.edu/registration.html
license.txt会被发送到填好的邮箱,把它复制粘贴到FREESURFER_HOME中就好。
接下来可以测试FreeSurfer是否安装好:
https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall#TestyourFreeSurferInstallation
例如:
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...
大功告成!
网友评论