1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
20 #include "clitkComposeVF_ggo.h"
21 #include "clitkCommon.h"
22 #include "clitkComposeVFGenericFilter.h"
24 //--------------------------------------------------------------------
25 int main( int argc, char *argv[] )
29 GGO(clitkComposeVF, args_info);
32 if (args_info.type_arg == 1 && !args_info.like_given) {
33 std::cerr << "--like must be used when type = 1" << std::endl;
38 //Creation of the generic filter
39 clitk::ComposeVFGenericFilter::Pointer ComposeVFGenericFilter= clitk::ComposeVFGenericFilter::New();
42 ComposeVFGenericFilter->SetInput1(args_info.input1_arg);
43 ComposeVFGenericFilter->SetInput2(args_info.input2_arg);
44 ComposeVFGenericFilter->SetOutput(args_info.output_arg);
45 ComposeVFGenericFilter->SetInputType(args_info.type_arg);
46 if (args_info.like_given)
47 ComposeVFGenericFilter->SetLikeImage(args_info.like_arg);
48 //JV how to pass for different dims?
49 //ComposeVFGenericFilter->SetEdgePaddingValue(args_info.pad_arg);
50 ComposeVFGenericFilter->SetVerbose(args_info.verbose_flag);
51 CLITK_TRY_CATCH_EXIT(ComposeVFGenericFilter->Update());
55 //--------------------------------------------------------------------