Yes, 3 translation, then 3 rotation, then 3 scale, then 3 shear
The translations depend upon the coordinate system, so they are kind of arbitrary; they are simply the last column of the matrix in the LTA


On 10/1/2024 4:19 AM, noga.kertes@campus.technion.ac.il wrote:

        External Email - Use Caution        

Thanks you for the help!

I ran this command and got the following output:

-14.7814 8.24088 7.81518 0.998388 4.87218 3.29326 1 1 1 0 -7.45058e-09 -5.58794e-09 

What does each number represent? 

Are the first three numbers representing translations? If so, and if they are supposed to be in millimeters, the values seem excessively high, even though the actual translation appears to be much smaller. However, when inspecting the resulting image, the registration seems to have been successful. Do you have any thoughts on why it could happen? 

Thanks again,
Noga


From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Douglas N. Greve <dgreve@MGH.HARVARD.EDU>
Sent: Monday, September 30, 2024 17:02
To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] FreeSurfer - extract rigid parameters from .lta file
 

You don't often get email from dgreve@mgh.harvard.edu. Learn why this is important

Use mri_coreg --mat2par file.lta



On 9/29/2024 5:48 AM, noga.kertes@campus.technion.ac.il wrote:

        External Email - Use Caution        

Hello FreeSurfer Developers,
I am using mri_robust_register to register a moving volume to a fixed one. The algorithm outputs the rigid transformation in a .lta file. I need to extract the rigid parameters (3 rotation angles in degrees and 3 translation parameters in millimeters).
However, the transformation in the file doesn't seem right, as the translation parameters appear to be very large (I assume the values in the last column of the transformation are in millimeters). The moved image doesn’t seem to translate by more than a few millimeters.
Is there a command for converting the .lta file into rotation and translation parameters? If not, could you provide more information on how to manually convert it using the transformation in the .lta file?
Freesurfer version: freesurfer-linux-centos7_x86_64-7.4.1-20230613-7eb8460

Thank you,
Noga


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

External e-mail, be judicious when opening attachments or links


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer