[Neuroimaging] Reading FreeSurfer m3z files?

Tim Schäfer ts+ml at rcmd.org
Fri Feb 22 07:27:39 EST 2019


Dear list,

does anybody know of a Python library which can read FreeSurfer m3z files, like <subject>/mri/transforms/talairach.m3z?

These are binary files encoding a dense vector field for a 3D registration. The format seems to be a custom FreeSurfer format, but I'm not 100% sure on that. (The respective function in FreeSurfer is called GCAMwrite [1], and there is a Matlab implementation that is called mris_write_m3z [2], it seems.)

Best,

-- 
Tim

[1] https://github.com/freesurfer/freesurfer/blob/dev/utils/gcamorph.c
[2] https://github.com/freesurfer/freesurfer/blob/dev/matlab/mris_write_m3z.m


More information about the Neuroimaging mailing list