[Neuroimaging] Reading FreeSurfer m3z files?

Noam Peled peled.noam at gmail.com
Sun Feb 24 15:08:47 EST 2019


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20190224/ea749a6a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mris_read_m3z.m
Type: application/octet-stream
Size: 3395 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20190224/ea749a6a/attachment.obj>


More information about the Neuroimaging mailing list