]> Creatis software - clitk.git/blob - tools/clitkMedianImageFilter.cxx
Be sure to have the correct origin in clitkImage2DicomDose output
[clitk.git] / tools / clitkMedianImageFilter.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to:
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================*/
18 /*------------------------------------------------------------------------
19
20   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
21   l'Image). All rights reserved. See Doc/License.txt or
22   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
23
24   This software is distributed WITHOUT ANY WARRANTY; without even
25   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
26   PURPOSE.  See the above copyright notices for more information.
27
28   ------------------------------------------------------------------------*/
29
30 /* =================================================
31  * @file   clitkMedianImageGenericFilter.txx
32  * @author Bharath Navalpakkam <Bharath.Navalpakkam@creatis.insa-lyon.fr>
33  * @date   18 March 2010
34  *
35  * @brief Apply Median Filter to an Image
36  *
37  ===================================================*/
38
39 // clitk
40 #include "clitkMedianImageFilter_ggo.h"
41 #include "clitkMedianImageGenericFilter.h"
42
43 //--------------------------------------------------------------------
44 int main(int argc, char * argv[])
45 {
46
47   // Init command line
48   GGO(clitkMedianImageFilter, args_info);
49   CLITK_INIT;
50
51   // Filter
52   clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::Pointer filter =
53     clitk::MedianImageGenericFilter<args_info_clitkMedianImageFilter>::New();
54
55
56   filter->SetOutputFilename(args_info.output_arg);
57
58   filter->SetArgsInfo(args_info);
59
60   filter->Update();
61
62   return EXIT_SUCCESS;
63 }// end main
64
65 //--------------------------------------------------------------------