]> Creatis software - clitk.git/blob - tools/clitkWriteDicomSeries.cxx
Debug RTStruct conversion with empty struc
[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://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
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 #include "clitkCommon.h"
34
35 //--------------------------------------------------------------------
36 int main(int argc, char * argv[])
37 {
38
39   // Init command line
40   GGO(clitkWriteDicomSeries, args_info);
41   CLITK_INIT;
42
43   // Filter
44   typedef clitk::WriteDicomSeriesGenericFilter<args_info_clitkWriteDicomSeries> FilterType;
45   FilterType::Pointer genericFilter = FilterType::New();
46
47   genericFilter->SetArgsInfo(args_info);
48   genericFilter->Update();
49
50   return EXIT_SUCCESS;
51 }// end main
52
53 //--------------------------------------------------------------------