Print

Print


There are several ways to do this:

(1) Find the mean of the x,y,z coordinates of each cluster;
(2) Find the weighted mean of the x,y,z coordinates of each cluster; or
(3) Find the mean of the x,y,z coordinates of all the peaks in the cluster or peaks with 8mm of each other as done with peak_nii.

The one thing to note is that all of these methods could move the center outside of the cluster if the cluster is shaped in an odd way. This is less likely to happen if you only find the peaks in the cluster and find the center of them within 8mm of each other.

Hope this helps.

Best Regards, Donald McLaren
=================
D.G. McLaren, Ph.D.
Postdoctoral Research Fellow, GRECC, Bedford VA
Research Fellow, Department of Neurology, Massachusetts General Hospital and
Harvard Medical School
Website: http://www.martinos.org/~mclaren
Office: (773) 406-2464
=====================
This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is
intended only for the use of the individual or entity named above. If the
reader of the e-mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient, you are hereby
notified that you are in possession of confidential and privileged
information. Any unauthorized use, disclosure, copying or the taking of any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this e-mail
unintentionally, please immediately notify the sender via telephone at (773)
406-2464 or email.



2012/3/25 Natalia Estévez <[log in to unmask]>

Dear SPM experts

For my fMRI study I would like to right a batch to calculate the geometric center of gravity for the activation in a ROI. Can somebody tell me what formula I should use for this. Can I just extract the coordinate for all activated voxels in a ROI and calculate their mean (a mean value for the x coordinate, y coordinate and the z coordinate separately)?.

Several times I saw also the term “center of mass”. Is there a difference between center of mass and center of gravity or are these the same thing.

 

Thank you very much for your help.

Natalia