]> Creatis software - clitk.git/blobdiff - tools/clitkWarpImageGenericFilter.h
With ITKv5, change VectorResample and VectorCast Image Filter to Resample and Cast...
[clitk.git] / tools / clitkWarpImageGenericFilter.h
index 90a3665945a20d4dc1ef27a9d510bb97d144a1e8..58da907bf7ac3e488464aa0d71115c48540980ae 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
+
+  Authors belong to: 
+  - University of LYON              http://www.universite-lyon.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
+  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+  PURPOSE.  See the copyright notices for more information.
+
+  It is distributed under dual licence
+
+  - BSD        See included LICENSE.txt file
+  - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================**/
 #ifndef clitkWarpImageGenericFilter_h
 #define clitkWarpImageGenericFilter_h
 
 //itk include
 #include "itkLightObject.h"
 #include "itkWarpImageFilter.h"
+#if ( ITK_VERSION_MAJOR < 5 )
 #include "itkVectorResampleImageFilter.h"
+#else
+#include "itkResampleImageFilter.h"
+#endif
 
 namespace clitk 
 {
@@ -54,7 +75,7 @@ namespace clitk
     //----------------------------------------
     // Set & Get
     //----------------------------------------    
-    void SetArgsInfo(const gengetopt_args_info_clitkWarpImage & a)
+    void SetArgsInfo(const args_info_clitkWarpImage & a)
     {
       m_ArgsInfo=a;
       m_Verbose=m_ArgsInfo.verbose_flag;
@@ -82,11 +103,10 @@ namespace clitk
     template <unsigned int Dimension>  void UpdateWithDim(std::string PixelType);
     template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
 
-
     //----------------------------------------  
     // Data members
     //----------------------------------------
-    gengetopt_args_info_clitkWarpImage m_ArgsInfo;
+    args_info_clitkWarpImage m_ArgsInfo;
     bool m_Verbose;
     std::string m_InputFileName;