[Insight-developers] patch to support more default transforms in the IO factory

Luis Ibanez luis.ibanez at kitware.com
Mon May 5 13:35:04 EDT 2008


Hi Simon,

Thanks for pointing this out,
and for providing the patch.

It has been committed to the CVS repository:

http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkTransformFactoryBase.cxx?root=Insight&r1=1.3&r2=1.4&sortby=date


Please let us know if you find any other problem.


    Thanks


       Luis


------------------------
Simon Warfield wrote:
> itkTransformFactoryBase does not currently support IO of all of the 
> transforms that can be instantiated in ITK.
> Instead, non-default transforms can be read by first registering 
> transforms with the IO factory.
> 
> The attached patch adds Similarity2DTransform as a default transform.
> 
> 
> ------------------------------------------------------------------------
> 
> *** old.itkTransformFactoryBase.cxx	2008-05-03 12:44:55.000000000 -0400
> --- itkTransformFactoryBase.cxx	2008-05-03 12:45:36.000000000 -0400
> ***************
> *** 24,29 ****
> --- 24,30 ----
>   #include "itkCenteredEuler3DTransform.h"
>   #include "itkCenteredRigid2DTransform.h"
>   #include "itkCenteredSimilarity2DTransform.h"
> + #include "itkSimilarity2DTransform.h"
>   #include "itkEuler2DTransform.h"
>   #include "itkEuler3DTransform.h"
>   #include "itkFixedCenterOfRotationAffineTransform.h"
> ***************
> *** 67,72 ****
> --- 68,74 ----
>       TransformFactory<CenteredEuler3DTransform<double> >::RegisterTransform ();
>       TransformFactory<CenteredRigid2DTransform < float > >::RegisterTransform();
>       TransformFactory<CenteredSimilarity2DTransform<double> >::RegisterTransform ();
> +     TransformFactory<Similarity2DTransform<double> >::RegisterTransform ();
>       TransformFactory<Euler2DTransform<double> >::RegisterTransform ();
>       TransformFactory<Euler3DTransform<double> >::RegisterTransform ();
>       TransformFactory<FixedCenterOfRotationAffineTransform<double> >::RegisterTransform ();
> ***************
> *** 92,97 ****
> --- 94,100 ----
>       TransformFactory<CenteredAffineTransform<float,3> >::RegisterTransform ();
>       TransformFactory<CenteredEuler3DTransform<float> >::RegisterTransform ();
>       TransformFactory<CenteredSimilarity2DTransform<float> >::RegisterTransform ();
> +     TransformFactory<Similarity2DTransform<float> >::RegisterTransform ();
>       TransformFactory<Euler2DTransform<float> >::RegisterTransform ();
>       TransformFactory<Euler3DTransform<float> >::RegisterTransform ();
>       TransformFactory<FixedCenterOfRotationAffineTransform<float> >::RegisterTransform ();
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list