如何提取脑图谱/脑区label文件的中心坐标

解决

import  nilearn.plotting  as  pl
import  nibabel  as  nib

labels_img  =  nib.load('/data/cye_code/BIDS-fmripost/atlases/AAL1PD25_MNI.nii.gz')
coords  =  pl.find_parcellation_cut_coords(labels_img)
np.savetxt("/data/cye_code/BIDS-fmripost/atlases/coords.csv", coords.astype(int), delimiter=",")
叶辰飞
叶辰飞
脑网络编织者

用影像解析人脑的秘密