]> Creatis software - clitk.git/blob - tools/clitkZeroVF.cxx
cleanup / better handling of errors
[clitk.git] / tools / clitkZeroVF.cxx
1 #ifndef clitkZeroVF_cxx
2 #define clitkZeroVF_cxx
3
4
5 /**
6  * @file   clitkZeroVF.cxx
7  * @author Joel Schaerer
8  * @date   July 20  10:14:53 2007
9  * 
10  * @brief  Creates a VF filled with zeros the size of the input VF
11  * 
12  */
13
14 // clitk include
15 #include "clitkZeroVF_ggo.h"
16 #include "clitkIO.h"
17 #include "clitkImageCommon.h"
18 #include "clitkZeroVFGenericFilter.h"
19
20 int main( int argc, char *argv[] )
21 {
22   
23   // Init command line
24   GGO(clitkZeroVF, args_info);
25   CLITK_INIT;
26   
27   //Creation of the generic filter
28   clitk::ZeroVFGenericFilter::Pointer zeroVFGenericFilter= clitk::ZeroVFGenericFilter::New();
29
30   //Pass the parameters
31   zeroVFGenericFilter->SetInput(args_info.input_arg);
32   zeroVFGenericFilter->SetOutput(args_info.output_arg);
33   zeroVFGenericFilter->SetVerbose(args_info.verbose_flag);
34
35   //update
36   zeroVFGenericFilter->Update();  
37   return EXIT_SUCCESS;
38 }
39 #endif
40