]> Creatis software - clitk.git/blob - tools/clitkGuerreroVentilation.cxx
Reformatted using new coding style
[clitk.git] / tools / clitkGuerreroVentilation.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://oncora1.lyon.fnclcc.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    * @file   clitkGuerreroVentilation.cxx
21    * @author Joël Schaerer
22    * @date   20 April 2009
23    ------------------------------------------------=*/
24
25 // clitk include
26 #include "clitkGuerreroVentilation_ggo.h"
27 #include "clitkGuerreroVentilationGenericFilter.h"
28 #include "clitkIO.h"
29
30 //--------------------------------------------------------------------
31 int main(int argc, char * argv[])
32 {
33
34   // Init command line
35   GGO(clitkGuerreroVentilation, args_info);
36   CLITK_INIT;
37
38   // Read image dimension
39   itk::ImageIOBase::Pointer header = clitk::readImageHeader(args_info.input_arg);
40   //unsigned int dim = header->GetNumberOfDimensions();
41
42   // Check parameters
43   // Main filter
44   clitk::GuerreroVentilationGenericFilter filter;
45   filter.SetInputFilename(args_info.input_arg);
46   filter.AddInputFilename(args_info.ref_arg);
47   filter.SetOutputFilename(args_info.output_arg);
48   filter.SetBloodCorrectionFactor(args_info.factor_arg);
49   filter.SetUseCorrectFormula(args_info.correct_flag);
50   filter.Update();
51
52   // this is the end my friend
53   return 0;
54 } // end main