]> Creatis software - clitk.git/blobdiff - segmentation/clitkMorphoMath.cxx
Set Directions to CropImage Like
[clitk.git] / segmentation / clitkMorphoMath.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 46e3489..25c40df
@@ -36,11 +36,7 @@ int main(int argc, char * argv[]) {
   // Passing the arguments to the generic filter
   filter->SetArgsInfo(args_info);
  
-  try {
-    filter->Update();
-  } catch(std::runtime_error e) {
-    std::cout << e.what() << std::endl;
-  }
+  CLITK_TRY_CATCH_EXIT(filter->Update());
 
   return EXIT_SUCCESS;
 } // This is the end, my friend