Are there any tools that can estimate head/brain radius from a brain mask or T1w image? Or, if this information is already calculated by FreeSurfer, that would work too.

V= (4/3) \pi r^3
… and inverting it to get radius:
r= (3V/4\pi)^{1/3}
… and then you just need the physical volume of the mask, which could be got, for example in AFNI:

3dROIstats -quiet -nomeanout -nzvolume -mask DSET_MASK DSET_MASK


? That should be a reasonable approximation.

–pt

That is a great idea! Thanks!

For the record only as this a very SPM centric method.

If you have a gifti image of the pial surface, there is some code in there that can help here:

1 Like

Hi,

I got the following ideas using FSL and AFNI:

• Use FSL bet on a T1w image with option -A : creates a mask with the edge of the inner skull mask: _inskull_mesh.nii.gz
• Use fslstats to get the center of gravity of the image: fslstats T1w_brain.nii.gz -c (in mm coordinates)
• use AFNI’s 3dmaskdump to get the coordinates of each non-zero voxel in the file : _inskull_mesh.nii.gz in a text file: 3dmaskdump -mask T1w_brain_inskull_mesh.nii.gz -xyz -o output.txt T1w.nii.gz
• Compute the mean distance of cog with each non-zero voxel of _inskull_mesh.nii.gz:
dist (in mm) = sqrt[(x1 -x2)^2 + (y1 - y2)^2 + (z1-z2)^2]
1 Like

I suspect it would be fun to estimate this way for many brains at many ages and see the distribution of brain radii estimates, especially to see how close they are to the common assumptions of 50mm in adults and 35mm in infants.

There are lots of ways to compute something “radialish”:

1. Compute volume (per ptaylor) and approximate that volume as a sphere, so the radius is related to the cube root of the volume as in Paul’s formula above.

2. Find distance from some kind of center to the edge of the brain (per jsein). This is equivalent or at least very similar of the center in the volume to every node on the outermost surface. Take the average of those edge distances or the minimum distance. Remi-Gau’s surface method computes distances across all voxels to the surface, so that’s a little different.
That center could be the center of mass, the deepest voxel (the “pole of isolation”). See this fun poster we did with Chris Rorden. https://afni.nimh.nih.gov/pub/dist/HBM2020/GlenEtal_FindingYourCenter_OHBM2020.pdf

3. Find the bounding box for a relatively cardinalized (AC-PC or similar) dataset, and split the left-right distance in half.

I tried the depth method using 3dDepthMap to find that deepest voxel for a variety of datasets with the simple script below and found a range of about 26-48mm for ages 8-78.

#!/bin/tcsh
# computing depth
set ddir = /data/NIMH_SSCC/p024_ds-frontiers-qc_REST/data_13_ssw

rm maxdepthlist.txt

foreach submask ( ${ddir}/sub-*/ses-01/mask_ss_cp.sub-*.nii ) 3dDepthMap -prefix depthskull.nii.gz -input$submask \
-binary_only -zeros_are_zero -overwrite
set maxdepth = 3dBrickStat -max -slow depthskull.nii.gz
echo $maxdepth$submask >> maxdepthlist.txt
echo $maxdepth$submask
end


That looks like this for 139 subjects we looked at recently across 7 sites: We actually used a variation of that volumetric->radius idea to control for dilation during averaging in this paper, A series of five population‐specific Indian brain templates and atlases spanning ages 6–60 years - PMC
Looking back at that data for the 18-25 year old group, that kind of radius varies from 65-75mm. Mostly we don’t make too much assumption about 50mm that I know of with the only exception I can think of is how we compute the enorm time series. Those mix mm and degrees to give the Euclidean norm, and the assumption of 50mm gives almost exactly a 1 degree rotation from center of the dataset, making the scaling of degrees and mm similar. It’s not critical though because thresholds are still somewhat arbitrary. That combination is less true for kids, and even less for most species.

2 Likes