]> Creatis software - clitk.git/blobdiff - tools/clitkBSplineCoefficientsToValuesGenericFilter.txx
Add --afdb_path option
[clitk.git] / tools / clitkBSplineCoefficientsToValuesGenericFilter.txx
index fed92b10b33d43406e5d0f0d29a3eba1ff49aaaa..0111db24da506afa39a3bec1286af876104002df 100644 (file)
@@ -3,7 +3,7 @@
 
   Authors belong to: 
   - University of LYON              http://www.universite-lyon.fr/
-  - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
 
   This software is distributed WITHOUT ANY WARRANTY; without even
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 #ifndef clitkBSplineCoefficientsToValuesGenericFilter_txx
 #define clitkBSplineCoefficientsToValuesGenericFilter_txx
+#include <itkAffineTransform.h>
 
 /* =================================================
  * @file   clitkBSplineCoefficientsToValuesGenericFilter.txx
@@ -283,7 +284,11 @@ namespace clitk
     // Matrix Transform
     if(m_ArgsInfo.matrix_given)
       {
+#if ITK_VERSION_MAJOR >= 4
+       typedef itk::TransformToDisplacementFieldSource<OutputImageType, double> ConvertorType;
+#else
        typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
+#endif
        typename   ConvertorType::Pointer filter= ConvertorType::New();
        filter->SetOutputParametersFromImage(output);