[ITK Community] [Insight-users] ITKV4 combine affine transform with displacement field to output displacement field

Matt McCormick matt.mccormick at kitware.com
Tue Jan 28 15:11:01 EST 2014


Hi Emma,

In ITKv4, there is a much nicer way of doing this with the
CompositeTransform [1].  Load the AffineTransform and
DisplacementFieldTransform and add them to a CompositeTransform with
AddTransform() [2].

Hope this helps,
Matt

[1] http://www.itk.org/Doxygen/html/classitk_1_1CompositeTransform.html
[2]http://www.itk.org/Doxygen/html/classitk_1_1MultiTransform.html#a698cf2434061a797bca49ed32a46cab9

On Tue, Jan 28, 2014 at 3:02 PM, Emma Saunders
<emmasaunders123 at gmail.com> wrote:
> Hi all,
>
> I have an affine transform as a .txt file and a deformation field as .mha.
> I would like to find a composite transform of each.
>
> At the moment I convert the affine to a deformation field using
> "itkTransformToDisplacementFieldSource.h"
>
> and then compose it with the displacement field using:
>
> "itkComposeDisplacementFieldsImageFilter.h"
>
> Is there a more succinct way to do this in the new framework>
>
> Many thanks
>
> Emma
>
>
> _____________________________________
> 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
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
_____________________________________
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



More information about the Community mailing list