]> Creatis software - clitk.git/blobdiff - segmentation/clitkFillMask.cxx
*** empty log message ***
[clitk.git] / segmentation / clitkFillMask.cxx
index 209fbf79a92da516976dfdd0f79601e8ddf5496e..977747dcf6178ab1eebd0d913bad202c76706a57 100644 (file)
                                                                              
   ------------------------------------------------------------------------*/
 
-/* =================================================
- * @file   clitkFillMask.cxx
- * @author 
- * @date   
- * 
- * @brief 
- * 
- ===================================================*/
-
-
 // clitk
 #include "clitkFillMask_ggo.h"
 #include "clitkIO.h"
+#include "clitkCommon.h"
 #include "clitkFillMaskGenericFilter.h"
 
-
 //--------------------------------------------------------------------
 int main(int argc, char * argv[]) {
 
@@ -34,12 +24,17 @@ int main(int argc, char * argv[]) {
   CLITK_INIT;
 
   // Filter
-  clitk::FillMaskGenericFilter::Pointer genericFilter=clitk::FillMaskGenericFilter::New();
+  typedef clitk::FillMaskGenericFilter<args_info_clitkFillMask> FilterType;
+  FilterType::Pointer filter = FilterType::New();
   
-  genericFilter->SetArgsInfo(args_info);
-  genericFilter->Update();
+  filter->SetArgsInfo(args_info);
+  
+  try {
+    filter->Update();
+  } catch(std::runtime_error e) {
+    std::cerr << e.what() << std::endl;
+  }
 
   return EXIT_SUCCESS;
-}// end main
-
+} // This is the end, my friend
 //--------------------------------------------------------------------