]> Creatis software - clitk.git/blobdiff - segmentation/clitkFillMask.cxx
Attempt to manually adjust the layout of the overlay panel for fusion to minimize...
[clitk.git] / segmentation / clitkFillMask.cxx
index 6fa48493736e4897564b495e78514b61862a7b90..231586d352010fdeaeb9f5c2aa511e7fa70cfeb8 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
+
+  Authors belong to:
+  - University of LYON              http://www.universite-lyon.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
+  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+  PURPOSE.  See the copyright notices for more information.
+
+  It is distributed under dual licence
+
+  - BSD        See included LICENSE.txt file
+  - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================*/
 /*------------------------------------------------------------------------
                                                                                  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
                                                                              
   ------------------------------------------------------------------------*/
 
-/* =================================================
- * @file   clitkFillMask.cxx
- * @author 
- * @date   
- * 
- * @brief 
- * 
- ===================================================*/
-
-
 // clitk
 #include "clitkFillMask_ggo.h"
 #include "clitkIO.h"
@@ -34,12 +41,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
 //--------------------------------------------------------------------