我们经常会遇到需要可视化网络,这就需要求感兴趣区域的三维空间的坐标,那到底怎么求呢?下面给出详细的代码?
% Function to extract centroids of a cortical parcellation on the Freesurfer sphere. Runs on individual hemispheres.
%
% Requires read_surf.m and read_annotation.m functions, distributed with Freesurfer (Applications > freesurfer > matlab).
%
% Inputs:
% path_sphere path to the Fressurfer .annot file describing coordinates
% of each vertex on the sphere
% example: [path of FreeSurfer parcellation '/surf/rh.sphere']
% path_annot path to the Freesurfer .annot file describing parcel membership of
% each vertex
%