Center of mass of HCP labels from structural atlas

I am using tck2connectome to generate connectome matrix hcpmmp1.csv, for corresponding labels at which were provided at mrtrix3/share/mrtrix3/labelconvert/hcpmmp1_ordered.txt.

i would like to know how i can possibly obtain center of mass of each label provided in hcpmmp1_ordered.txt file .

I want one single center of mass value in (x,y,z) for each region in structural parcellation atlas , is there a way to obtain ROI coordinates with tck2connectome.


Hi Vasudev,

There’s an outstanding GitHub Pull Request here that includes a new command labelstats. This computes the volume and centre of mass of each label, which is precisely what you’re looking for. You could either try checking out that Git branch, or downloading the file cmd/labelstats.cpp from that branch and compiling it (don’t know if that would work without trying).