Dear Freesurfers,

I have a 3D volume mask of cortical lesions with 8 different clusters (8 cortical lesions).

I projected this mask to the cortex and obtained a .mgh file with the command vol2surf:

mri_vol2surf --src $path_to_lesion/$subj/combined-$lesion.nii.gz --out $path_to_output/$subj/surf/$hemi".surf_combined-"$lesion".mgh" --projfrac-avg -0.1 1 0.05 --hemi $hemi --regheader $subj


Now I need to extract label files from this surface file, one label for each cluster, and then an annotation file summarizing all the label files.

How can I do this?

Thanks,

Vale