]> Creatis software - clitk.git/blobdiff - tools/clitkResampleImage.cxx
Add wipe tool
[clitk.git] / tools / clitkResampleImage.cxx
index 661e1839a86f5a9a4a3969d13a2ea0478a472b09..64be16799a63a5c185e8acf65aa3488435f49dc0 100644 (file)
@@ -27,13 +27,14 @@ int main(int argc, char * argv[])
 
   // Init command line
   GGO(clitkResampleImage, args_info);
+  CLITK_INIT;
 
   // Filter
   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;