]> Creatis software - clitk.git/blob - tools/clitkDicomInfo.cxx
Initial revision
[clitk.git] / tools / clitkDicomInfo.cxx
1 /*-------------------------------------------------------------------------
2                                                                                 
3 Program:   clitk
4 Module:    $RCSfile: clitkDicomInfo.cxx,v $
5 Language:  C++
6 Date:      $Date: 2010/01/06 13:31:56 $
7 Version:   $Revision: 1.1 $
8                                                                                 
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE.  See the above copyright notices for more information.
16                                                                              
17 -------------------------------------------------------------------------*/
18
19 /**
20    -------------------------------------------------
21    * @file   clitkDicomInfo.cxx
22    * @author Laurent ZAGNI <laurent.zagni@insa-lyon.fr>
23    * @date   27 Jul 2006
24    -------------------------------------------------*/
25
26 // clitk includes
27 #include "clitkDicomInfo_ggo.h"
28 #include "clitkCommon.h"
29
30 // itk (gdcm) include
31 #include "gdcmFile.h"
32
33 //--------------------------------------------------------------------
34 int main(int argc, char * argv[]) {
35
36   // init command line
37   GGO(clitkDicomInfo, args_info);
38
39   // check arg
40   if (args_info.inputs_num == 0) return 0;
41
42   // Loop files
43   for(unsigned int i=0; i<args_info.inputs_num; i++) {
44     gdcm::File *header = new gdcm::File();
45     header->SetFileName(args_info.inputs[i]);
46     header->SetMaxSizeLoadEntry(16384);
47     header->Load();
48     header->Print();
49   }
50
51   // this is the end my friend  
52   return 0;
53 }
54 //--------------------------------------------------------------------