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://oncora1.lyon.fnclcc.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 ======================================================================-====*/
18 #ifndef CLITKMERGESEQUENCE_CXX
19 #define CLITKMERGESEQUENCE_CXX
22 * @file clitkMergeSequence.cxx
23 * @author Jef Vandemeulebroucke <jefvdmb@gmail.com>
24 * @date December 2 10:14:53 2008
26 * @brief Read in one VF (ex mhd, vf) invert it using a splat with linear kernels to the target.
31 #include "clitkMergeSequence_ggo.h"
33 #include "clitkImageCommon.h"
34 #include "clitkCommon.h"
35 #include "clitkMergeSequenceGenericFilter.h"
37 int main( int argc, char *argv[] )
41 GGO(clitkMergeSequence, args_info);
44 //Creation of the generic filter
45 clitk::MergeSequenceGenericFilter::Pointer MergeSequenceGenericFilter= clitk::MergeSequenceGenericFilter::New();
48 std::vector<std::string> names;
49 for(unsigned int i=0; i<args_info.inputs_num;i++)names.push_back(args_info.inputs[i]);
50 MergeSequenceGenericFilter->SetInputs(names);
51 MergeSequenceGenericFilter->SetSpacing(args_info.spacing_arg);
52 MergeSequenceGenericFilter->SetOutput(args_info.output_arg);
53 MergeSequenceGenericFilter->SetVerbose(args_info.verbose_flag);
56 MergeSequenceGenericFilter->Update();