Is there a function in AFNI to calculate the distance between two MNI coordinates in volumetric space (not surface)? For example, I’d like to calculate the distance between ROI 1 (-68.3,-41.41,-5.14) and ROI 2 (-60.48,-25.22,13.82).
I am not aware of a tool to do this. The hardest part is picking a single point from each ROI (which is an extended volume, potentially of wildly weird shape) from which to calculate distance? I imagine center of mass or some kind of central point would be used, but consider how different distance might be interpreted, whether it was between two spheres or two octopuses with tenacles extended toward each other—what is the distance in the latter?
Once you do have a single point defined for each ROI A and B, the geometric distance would be the square root of the sum of squares across the components:
dist(A, B) = sqrt{ (A_i - B_i)^2 + (A_j - B_j)^2 + (A_k - B_k)^2 }
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.