]> Creatis software - clitk.git/blob - tools/clitkMedianImageFilter.cxx
7c8dcc8bb754a70ef089dace99dacf4c5fde0e32
[clitk.git] / tools / clitkMedianImageFilter.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   clitkMedianImageGenericFilter.txx
15  * @author Bharath Navalpakkam <Bharath.Navalpakkam@creatis.insa-lyon.fr>
16  * @date   18 March 2010
17  * 
18  * @brief Apply Median Filter to an Image
19  * 
20  ===================================================*/
21
22 // clitk
23 #include "clitkMedianImageFilter_ggo.h"
24 #include "clitkMedianImageGenericFilter.h"
25
26 //--------------------------------------------------------------------
27 int main(int argc, char * argv[]) {
28
29   // Init command line
30   GGO(clitkMedianImageFilter, args_info);
31   CLITK_INIT;
32
33   // Filter
34   clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::Pointer filter = 
35     clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::New();
36   
37     
38       filter->SetOutputFilename(args_info.output_arg);
39  
40   filter->SetArgsInfo(args_info);
41   
42   filter->Update();
43
44   return EXIT_SUCCESS;
45 }// end main
46
47 //--------------------------------------------------------------------