Extracting ROI coordinates

Hi there,

I’m wondering how I can extract the MNI coordinates of my ROIs. Each ROI is labelled with an integer value, which was output from 3dROIMaker.
I’m not sure if there’s a command to help me do that.

Thank you so much for your time!

Hi, Sondos-

There is a “whereami” function in AFNI that would probably be what you want. Here is a good place to look for this kind of thing (and for dealing with ROIs in general):
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/rois_corr_vis/afni11_roi_cmds.html

–pt

Also consider “3dCM -all_rois” to find the center of mass for all ROIs in a dataset.