Satra, thanks for the hint. How about the other way around? ITK to FSL. c3d_affine_tool only seems to have an option for FSL to ITK, or did I miss something?
On Thu, 6 Sep 2012 10:29:13 +0200, Satrajit Ghosh <[log in to unmask]> wrote:
>hi kai,
>
>use the c3d-affine tool. here is an example of concatenating transforms fsl
>affine + ants
>
>https://gist.github.com/1096274
>
>cheers,
>
>satra
>
>
>On Thu, Sep 6, 2012 at 10:25 AM, Kai Schlamp <[log in to unmask]>wrote:
>
>> Hello FSLers,
>>
>> tools like BRAINSFit (part of Slicer 3D) and ANTS (both based on ITK) do a
>> much better job for (rigid) coregistration than FLIRT in my case. That's
>> why I want to use them in my FSL workflow. Unfortunately those tools use
>> another transformation matrix format (Insight Transform File V1.0, example
>> below). Is there an easy way to transform that matrix to a FSL xfm matrix?
>>
>> Example of Insight Transform File V1.0 (from BRAINSFit):
>> #Insight Transform File V1.0
>> # Transform 0
>> Transform: AffineTransform_double_3_3
>> Parameters: 0.995643 -0.0582239 0.0728404 0.0525422 0.995597 0.0776254
>> -0.0770393 -0.07346 0.994318 -1.13088 2.98062 -11.7846
>> FixedParameters: 0 0 0
>>
>>
>> Example of Insight Transform File V1.0 (from ANTS):
>> #Insight Transform File V1.0
>> # Transform 0
>> Transform: MatrixOffsetTransformBase_double_3_3
>> Parameters: 0.999768 -0.0081135 0.0199386 0.00585248 0.993809 0.110948
>> -0.0207153 -0.110806 0.993626 -17.4511 -17.106 -29.2716
>> FixedParameters: 1.55119 -15.6374 25.3895
>>
>> Best regards,
>> Kai
>>
>
|