]> Creatis software - clitk.git/blobdiff - tools/clitkResampleImage.cxx
Merge branch 'master' into vectorImage
[clitk.git] / tools / clitkResampleImage.cxx
index acecb052b7ef7182b868566396fcfa2d9a789b63..64be16799a63a5c185e8acf65aa3488435f49dc0 100644 (file)
@@ -1,9 +1,9 @@
 /*=========================================================================
   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
 
-  Authors belong to: 
+  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"
 #include "clitkResampleImageGenericFilter.h"
 
 //--------------------------------------------------------------------
-int main(int argc, char * argv[]) {
+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  
+  // this is the end my friend
   return EXIT_SUCCESS;
 
 }// end main