]> Creatis software - clitk.git/blob - tools/clitkWriteDicomSeries.cxx
a54d1adaba5e12476708e32cd4fbc70ff23d46b4
[clitk.git] / tools / clitkWriteDicomSeries.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   clitkWriteDicomSeries.cxx
21  * @author Jef Vandemeulebroucke
22  * @date   4th of August
23  * 
24  * @brief Write a volume into a series with the header of another series
25  * 
26  ===================================================*/
27
28
29 // clitk
30 #include "clitkWriteDicomSeries_ggo.h"
31 #include "clitkIO.h"
32 #include "clitkWriteDicomSeriesGenericFilter.h"
33
34
35 //--------------------------------------------------------------------
36 int main(int argc, char * argv[]) {
37
38   // Init command line
39   GGO(clitkWriteDicomSeries, args_info);
40   CLITK_INIT;
41
42   // Filter
43   typedef clitk::WriteDicomSeriesGenericFilter<args_info_clitkWriteDicomSeries> FilterType;
44   FilterType::Pointer genericFilter = FilterType::New();
45   
46   genericFilter->SetArgsInfo(args_info);
47   genericFilter->Update();
48
49   return EXIT_SUCCESS;
50 }// end main
51
52 //--------------------------------------------------------------------