[Neuroimaging] Reading FreeSurfer m3z files?

Tim Schäfer ts+ml at rcmd.org
Mon Feb 25 05:41:07 EST 2019


True, I'll give it a try and report back.

> On February 25, 2019 at 11:26 AM Matthew Brett <matthew.brett at gmail.com> wrote:
> 
> 
> Hi,
> 
> That bit of code is verrry short - I guess it's a very simple format.
>  It should be pretty easy to implement.
> 
> Cheers,
> 
> Matthew
> 
> On Sun, Feb 24, 2019 at 8:09 PM Noam Peled <peled.noam at gmail.com> wrote:
> >
> > I don't know any python library that can read those files. I attached a Matlab file that reads m3z files. You can also find it here:
> > https://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg51239.html
> >
> >  If you convert it to Python, let me know :)
> >
> > Best,
> > Noam
> >
> > On Fri, Feb 22, 2019 at 8:07 AM Tim Schäfer <ts+ml at rcmd.org> wrote:
> >>
> >> 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
> >> _______________________________________________
> >> Neuroimaging mailing list
> >> Neuroimaging at python.org
> >> https://mail.python.org/mailman/listinfo/neuroimaging
> >
> > _______________________________________________
> > Neuroimaging mailing list
> > Neuroimaging at python.org
> > https://mail.python.org/mailman/listinfo/neuroimaging
> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging

-- 
Tim
0176 84273709


More information about the Neuroimaging mailing list