]> Creatis software - clitk.git/blob - segmentation/clitkFillMask.cxx
977747dcf6178ab1eebd0d913bad202c76706a57
[clitk.git] / segmentation / clitkFillMask.cxx
1 /*------------------------------------------------------------------------
2                                                                                  
3   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
4   l'Image). All rights reserved. See Doc/License.txt or
5   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
6                                                                                 
7   This software is distributed WITHOUT ANY WARRANTY; without even
8   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9   PURPOSE.  See the above copyright notices for more information.
10                                                                              
11   ------------------------------------------------------------------------*/
12
13 // clitk
14 #include "clitkFillMask_ggo.h"
15 #include "clitkIO.h"
16 #include "clitkCommon.h"
17 #include "clitkFillMaskGenericFilter.h"
18
19 //--------------------------------------------------------------------
20 int main(int argc, char * argv[]) {
21
22   // Init command line
23   GGO(clitkFillMask,args_info);
24   CLITK_INIT;
25
26   // Filter
27   typedef clitk::FillMaskGenericFilter<args_info_clitkFillMask> FilterType;
28   FilterType::Pointer filter = FilterType::New();
29   
30   filter->SetArgsInfo(args_info);
31   
32   try {
33     filter->Update();
34   } catch(std::runtime_error e) {
35     std::cerr << e.what() << std::endl;
36   }
37
38   return EXIT_SUCCESS;
39 } // This is the end, my friend
40 //--------------------------------------------------------------------