]> Creatis software - clitk.git/blob - tools/clitkZeroVF.cxx
Debug clitkNormalizeImage
[clitk.git] / tools / clitkZeroVF.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 #ifndef clitkZeroVF_cxx
19 #define clitkZeroVF_cxx
20
21 /**
22  * @file   clitkZeroVF.cxx
23  * @author Joel Schaerer
24  * @date   July 20  10:14:53 2007
25  *
26  * @brief  Creates a VF filled with zeros the size of the input VF
27  *
28  */
29
30 // clitk include
31 #include "clitkZeroVF_ggo.h"
32 #include "clitkIO.h"
33 #include "clitkImageCommon.h"
34 #include "clitkCommon.h"
35 #include "clitkZeroVFGenericFilter.h"
36
37 int main( int argc, char *argv[] )
38 {
39
40   // Init command line
41   GGO(clitkZeroVF, args_info);
42   CLITK_INIT;
43
44   //Creation of the generic filter
45   clitk::ZeroVFGenericFilter::Pointer zeroVFGenericFilter= clitk::ZeroVFGenericFilter::New();
46
47   //Pass the parameters
48   zeroVFGenericFilter->SetInput(args_info.input_arg);
49   zeroVFGenericFilter->SetOutput(args_info.output_arg);
50   zeroVFGenericFilter->SetVerbose(args_info.verbose_flag);
51
52   //update
53   CLITK_TRY_CATCH_EXIT(zeroVFGenericFilter->Update());
54   return EXIT_SUCCESS;
55 }
56 #endif
57