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