]> Creatis software - clitk.git/blobdiff - tools/clitkComposeVF.cxx
more refined abort-on-exception mechanism
[clitk.git] / tools / clitkComposeVF.cxx
old mode 100755 (executable)
new mode 100644 (file)
index ed510d9..72b95cf
@@ -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
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
-#ifndef CLITKCOMPOSEVF_CXX
-#define CLITKCOMPOSEVF_CXX
-
-/**
- * @file   clitkComposeVF.cxx
- * @author Jef Vandemeulebroucke <jefvdmb@gmail.com>
- * @date   July 20  10:14:53 2007
- * 
- * @brief  Read in two  VF (ex mhd, vf)compose them using lirear interpolation. 
- * 
- */
+===========================================================================**/
 
 // clitk include
 #include "clitkComposeVF_ggo.h"
-#include "clitkIO.h"
-#include "clitkImageCommon.h"
+#include "clitkCommon.h"
 #include "clitkComposeVFGenericFilter.h"
 
+//--------------------------------------------------------------------
 int main( int argc, char *argv[] )
 {
   
@@ -50,9 +39,10 @@ int main( int argc, char *argv[] )
   //JV how to pass for different dims?
   //ComposeVFGenericFilter->SetEdgePaddingValue(args_info.pad_arg);
   ComposeVFGenericFilter->SetVerbose(args_info.verbose_flag);
-  ComposeVFGenericFilter->Update();  
+  CLITK_TRY_CATCH_EXIT(ComposeVFGenericFilter->Update());  
 
   return EXIT_SUCCESS;
 }
-#endif
+//--------------------------------------------------------------------
+