GIfTI
it is the surface-file format complement to the NIfTI volume-file format.
In Freesurfer, the GUI utilities freeview and tksurfer can open and display .gii files directly.
mris_convert
The tool ‘mris_convert’ can be used to convert between native Freesurfer surface formats (like lh.pial) and gifti (lh.pial.gii) for exchange with other packages.
See the output of ‘mris_convert -help’ for examples. ie. mris_convert lh.pial lh.pial.gii
第一步:
export SUBJECTS_DIR=`pwd`
第二步:利用tksurfer打开标准模板:fsaverage
tksurfer fsaverage lh inflated
第三步:load label
第四步:疯狂地左击鼠标画出roi,然后点击红色的按钮
第五步:To fill the label, click once in the middle of the polygon and then click on the “Custom Fill”
This action will raise a dialog box with several fill options. Select the one that says “Up to and including paths” and then click the fill button. As a result, the ROI should appear like this:
第六步:select the label using Tools -> Labels -> Mark Selected Label.
第七步:保存导出label文件
备注:如果需要把label文件转换成gii格式的文件,需要利用mris_convert命令。