[Insight-users] FSL transformation to ITK transformation
Paolo Zaffino
p.zaffino at yahoo.it
Tue Dec 11 17:23:24 EST 2012
Dear ITK community,
I solved the problem using c3d_affine_tool:
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
After this command I changed the string
"MatrixOffsetTransformBase_double_3_3" in "AffineTransform_double_3_3".
It works now (in my case at least).
Thanks for your support.
Paolo
Il 10/12/2012 22:06, Paolo Zaffino ha scritto:
> Hi,
> Yes, I know, there is c3d_affine_tool.
> 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).
>
>
> ------------------------------------------------------------------------
> *Da:* Richard Beare <richard.beare at gmail.com>
> *A:* Paolo Zaffino <p.zaffino at yahoo.it>
> *Cc:* "insight-users at itk.org" <insight-users at itk.org>
> *Inviato:* Lunedì 10 Dicembre 2012 21:29
> *Oggetto:* Re: [Insight-users] FSL transformation to ITK transformation
>
> There are some tools in the itksnap/convert3D packages that help with
> this. I can't remember the names offhand.
>
> On Tue, Dec 11, 2012 at 1:51 AM, Paolo Zaffino <p.zaffino at yahoo.it
> <mailto:p.zaffino at yahoo.it>> wrote:
> > Dear ITK community,
> >
> > I would "translate" a FSL transformation file (.mat) into a ITK
> > transformation file (.tfm)
> > Has anyone any tips or code about this topic?
> > I found this:
> >
> http://www.na-mic.org/svn/NAMICSandBox/trunk/NonRigidRegistrationForEchoPlanarImaging/BSplineRegistration.cxx
> > I compiled it without problems, but in runtime it crashed (segmentation
> > fault).
> > Anyway reading that code doesn't seem that there is the possibility to
> > convert the mat file...am I missing something?
> >
> > Thank you very much.
> > Best regards.
> >
> > Paolo
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
> >
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121211/50e786f3/attachment.htm>
More information about the Insight-users
mailing list