<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear ITK community,<br>
      <br>
      I solved the problem using c3d_affine_tool:<br>
      c3d_affine_tool -ref ref_img_for_fsl.nii.gz -src
      moving_img_for_fsl.nii.gz fsl_transformation.mat -fsl2ras -oitk
      itk_transformation.tfm <br>
      After this command I changed the string
      "MatrixOffsetTransformBase_double_3_3" in
      "AffineTransform_double_3_3".<br>
      It works now (in my case at least).<br>
      <br>
      Thanks for your support.<br>
      <br>
      Paolo<br>
      <br>
      <br>
      <br>
      Il 10/12/2012 22:06, Paolo Zaffino ha scritto:<br>
    </div>
    <blockquote
      cite="mid:1355173619.99219.YahooMailNeo@web171603.mail.ir2.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;"><span></span></div>
        <div>
          <div><font face="times new roman, new york, times, serif">Hi,</font></div>
          <div><font face="times new roman, new york, times, serif">Yes,
              I know, there is c3d_affine_tool.</font></div>
          <div><font face="times new roman, new york, times, serif">The
              problem is that it writes a file in which the "Transform"
              field is set to "MatrixOffsetTransformBase_double_3_3" and
              ITK doesn't recognize it (an error is raised).</font></div>
          <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
            'times new roman', 'new york', times, serif;
            background-color: transparent; font-style: normal;"><font
              face="times new roman, new york, times, serif"><br>
            </font></div>
          <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
            'times new roman', 'new york', times, serif;
            background-color: transparent; font-style: normal;"><font
              face="times new roman, new york, times, serif"><br>
            </font></div>
        </div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;">
          <div style="font-family: 'times new roman', 'new york', times,
            serif; font-size: 12pt;">
            <div dir="ltr"> <font face="Arial" size="2">
                <hr size="1"> <b><span style="font-weight:bold;">Da:</span></b>
                Richard Beare <a class="moz-txt-link-rfc2396E" href="mailto:richard.beare@gmail.com">&lt;richard.beare@gmail.com&gt;</a><br>
                <b><span style="font-weight: bold;">A:</span></b> Paolo
                Zaffino <a class="moz-txt-link-rfc2396E" href="mailto:p.zaffino@yahoo.it">&lt;p.zaffino@yahoo.it&gt;</a> <br>
                <b><span style="font-weight: bold;">Cc:</span></b>
                <a class="moz-txt-link-rfc2396E" href="mailto:insight-users@itk.org">"insight-users@itk.org"</a> <a class="moz-txt-link-rfc2396E" href="mailto:insight-users@itk.org">&lt;insight-users@itk.org&gt;</a> <br>
                <b><span style="font-weight: bold;">Inviato:</span></b>
                Luned&igrave; 10 Dicembre 2012 21:29<br>
                <b><span style="font-weight: bold;">Oggetto:</span></b>
                Re: [Insight-users] FSL transformation to ITK
                transformation<br>
              </font> </div>
            <br>
            There are some tools in the itksnap/convert3D packages that
            help with<br>
            this. I can't remember the names offhand.<br>
            <br>
            On Tue, Dec 11, 2012 at 1:51 AM, Paolo Zaffino &lt;<a
              moz-do-not-send="true" ymailto="mailto:p.zaffino@yahoo.it"
              href="mailto:p.zaffino@yahoo.it">p.zaffino@yahoo.it</a>&gt;
            wrote:<br>
            &gt; Dear ITK community,<br>
            &gt;<br>
            &gt; I would "translate" a FSL transformation file (.mat)
            into a ITK<br>
            &gt; transformation file (.tfm)<br>
            &gt; Has anyone any tips or code about this topic?<br>
            &gt; I found this:<br>
            &gt; <a moz-do-not-send="true"
href="http://www.na-mic.org/svn/NAMICSandBox/trunk/NonRigidRegistrationForEchoPlanarImaging/BSplineRegistration.cxx"
              target="_blank">http://www.na-mic.org/svn/NAMICSandBox/trunk/NonRigidRegistrationForEchoPlanarImaging/BSplineRegistration.cxx</a><br>
            &gt; I compiled it without problems, but in runtime it
            crashed (segmentation<br>
            &gt; fault).<br>
            &gt; Anyway reading that code doesn't seem that there is the
            possibility to<br>
            &gt; convert the mat file...am I missing something?<br>
            &gt;<br>
            &gt; Thank you very much.<br>
            &gt; Best regards.<br>
            &gt;<br>
            &gt; Paolo<br>
            &gt;<br>
            &gt; _____________________________________<br>
            &gt; Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
            &gt;<br>
            &gt; Visit other Kitware open-source projects at<br>
            &gt; <a moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
            &gt;<br>
            &gt; Kitware offers ITK Training Courses, for more
            information visit:<br>
            &gt; <a moz-do-not-send="true"
              href="http://www.kitware.com/products/protraining.php"
              target="_blank">http://www.kitware.com/products/protraining.php</a><br>
            &gt;<br>
            &gt; Please keep messages on-topic and check the ITK FAQ at:<br>
            &gt; <a moz-do-not-send="true"
              href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
            &gt;<br>
            &gt; Follow this link to subscribe/unsubscribe:<br>
            &gt; <a moz-do-not-send="true"
              href="http://www.itk.org/mailman/listinfo/insight-users"
              target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
            &gt;<br>
            <br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>

Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>