]> Creatis software - clitk.git/blobdiff - tools/clitkResampleImage.cxx
Merge branch 'master' into GammaIndex3D
[clitk.git] / tools / clitkResampleImage.cxx
index f289128e86fe8f6ffc369b5e3644db47c7c0b079..64be16799a63a5c185e8acf65aa3488435f49dc0 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
@@ -14,7 +14,7 @@
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 
 // clitk
 #include "clitkResampleImage_ggo.h"
@@ -27,13 +27,14 @@ int main(int argc, char * argv[])
 
   // Init command line
   GGO(clitkResampleImage, args_info);
+  CLITK_INIT;
 
   // Filter
-  typedef clitk::ResampleImageGenericFilter<args_info_clitkResampleImage> FilterType;
+  typedef clitk::ResampleImageGenericFilter FilterType;
   FilterType::Pointer filter = FilterType::New();
 
   filter->SetArgsInfo(args_info);
-  filter->Update();
+  CLITK_TRY_CATCH_EXIT(filter->Update());
 
   // this is the end my friend
   return EXIT_SUCCESS;