]> Creatis software - clitk.git/blob - tools/clitkWriteDicomSeries.cxx
Initial revision
[clitk.git] / tools / clitkWriteDicomSeries.cxx
1 /*------------------------------------------------------------------------
2                                                                                  
3   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
4   l'Image). All rights reserved. See Doc/License.txt or
5   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
6                                                                                 
7   This software is distributed WITHOUT ANY WARRANTY; without even
8   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9   PURPOSE.  See the above copyright notices for more information.
10                                                                              
11   ------------------------------------------------------------------------*/
12
13 /* =================================================
14  * @file   clitkWriteDicomSeries.cxx
15  * @author Jef Vandemeulebroucke
16  * @date   4th of August
17  * 
18  * @brief Write a volume into a series with the header of another series
19  * 
20  ===================================================*/
21
22
23 // clitk
24 #include "clitkWriteDicomSeries_ggo.h"
25 #include "clitkIO.h"
26 #include "clitkWriteDicomSeriesGenericFilter.h"
27
28
29 //--------------------------------------------------------------------
30 int main(int argc, char * argv[]) {
31
32   // Init command line
33   GGO(clitkWriteDicomSeries, args_info);
34   CLITK_INIT;
35
36   // Filter
37   typedef clitk::WriteDicomSeriesGenericFilter<gengetopt_args_info_clitkWriteDicomSeries> FilterType;
38   FilterType::Pointer genericFilter = FilterType::New();
39   
40   genericFilter->SetArgsInfo(args_info);
41   genericFilter->Update();
42
43   return EXIT_SUCCESS;
44 }// end main
45
46 //--------------------------------------------------------------------