]> Creatis software - clitk.git/blob - tools/clitkBinarizeImage.cxx
- multiple inputs in vv
[clitk.git] / tools / clitkBinarizeImage.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 /* =================================================
14  * @file   clitkBinarizeImageGenericFilter.txx
15  * @author Jef Vandemeulebroucke <jef@creatis.insa-lyon.fr>
16  * @date   29 June 2009
17  * 
18  * @brief Binarize an image
19  * 
20  ===================================================*/
21
22 // clitk
23 #include "clitkBinarizeImage_ggo.h"
24 #include "clitkBinarizeImageGenericFilter.h"
25
26 //--------------------------------------------------------------------
27 int main(int argc, char * argv[]) {
28
29   // Init command line
30   GGO(clitkBinarizeImage, args_info);
31   CLITK_INIT;
32
33   // Filter
34   typedef clitk::BinarizeImageGenericFilter<args_info_clitkBinarizeImage> FilterType;
35   FilterType::Pointer filter = FilterType::New();
36   
37   filter->SetArgsInfo(args_info);
38   filter->Update();
39
40   return EXIT_SUCCESS;
41 }// end main
42
43 //--------------------------------------------------------------------