]> Creatis software - clitk.git/blob - tools/clitkMedianImageFilter.cxx
bcf2cb484e8d3ea689ede7f5b70b92c93517ae10
[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
30   // Init command line
31   GGO(clitkMedianImageFilter, args_info);
32   CLITK_INIT;
33
34   // Filter
35   clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::Pointer filter =
36     clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::New();
37
38
39   filter->SetOutputFilename(args_info.output_arg);
40
41   filter->SetArgsInfo(args_info);
42
43   filter->Update();
44
45   return EXIT_SUCCESS;
46 }// end main
47
48 //--------------------------------------------------------------------