[Mne_analysis] create --trans file from COR sets

Krieger, Donald N. kriegerd at upmc.edu
Mon Feb 24 19:05:09 EST 2014
Search archives:

I'm not sure if this is what you want since I create the transformed MRI using the ELEKTA utility and that isn't quite what you're asking.
But you can use the mne utility mne_show_fiff to get the head --> MRI transform matrix from that .fif file:

mne_show_fiff --verbose --in MRI_transform_file.fif

This will show you a bunch of stuff including something like:
 222 = transform                head -> MRI (surface RAS)
                                 0.99768  0.06237  0.02740    -2.29
                                -0.06093  0.99686 -0.05052    27.37
                                -0.03046  0.04873  0.99835   -28.78
                                 0.00000  0.00000  0.00000     1.00

You can also use the ELEKTA show_fiff utility.  The switches are slightly different:

show_fiff -v MRI_transform_file.fif

It provides the same plus the inverse transform too:

222 = transform         head -> MRI
        0.997677 0.062365 0.027399
        -0.060927 0.996863 -0.050517
        -0.030463 0.048730 0.998347
        -2.290811 27.368591 -28.776358 (inv. 3.076347 -25.737595 30.174137)


Don Krieger, Ph.D.
Department of Neurological Surgery
University of Pittsburgh
(412)648-9654 Office
(412)521-4431 Cell/Text

From: mne_analysis-bounces at nmr.mgh.harvard.edu [mne_analysis-bounces at nmr.mgh.harvard.edu] on behalf of dgw [dgwakeman at gmail.com]
Sent: Monday, February 24, 2014 5:07 PM
To: Mne_analysis at nmr.mgh.harvard.edu
Subject: [Mne_analysis] create --trans file from COR sets

What is the easiest way to create a text transformation matrix file from already transformed COR sets (that is: ones saved with "Save MRI set")?

Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

More information about the Mne_analysis mailing list