]> Creatis software - clitk.git/blobdiff - registration/clitkConvertBLUTCoeffsToVFFilter.h
Debug previous commit with correct include
[clitk.git] / registration / clitkConvertBLUTCoeffsToVFFilter.h
index 76b1578b68c0a426674279f707f5eb44369b130e..dc85c7a445db478bf15294d68870d80b9d26decf 100644 (file)
@@ -13,8 +13,6 @@
 #  else
 #    include "itkTransformToDisplacementFieldFilter.h"
 #  endif
-#else
-#  include "itkTransformToDeformationFieldSource.h"
 #endif
 
 namespace clitk 
@@ -45,7 +43,11 @@ namespace clitk
 
     typedef clitk::BSplineDeformableTransform<double, TDVFType::ImageDimension, TDVFType::ImageDimension> BLUTTransformType;
     typedef typename BLUTTransformType::CoefficientImageType BLUTCoefficientImageType;
-    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, TDVFType::ImageDimension> ITKTransformType;
+    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, 3> ITKTransformType;
+    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, 0> ITKTransformTypeZero;
+    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, 1> ITKTransformTypeOne;
+    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, 2> ITKTransformTypeTwo;
+    typedef itk::BSplineDeformableTransform<double, TDVFType::ImageDimension, 4> ITKTransformTypeFour;
 
     typedef itk::Transform< double, TDVFType::ImageDimension, TDVFType::ImageDimension> GenericTransformType;
     
@@ -55,8 +57,6 @@ namespace clitk
 #  else
     typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
 #  endif
-#else
-    typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
 #endif
 
     itkNewMacro(Self);