]> Creatis software - clitk.git/blob - tools/clitkDicomInfo.cxx
4c31e0922807322e19c93404cd37cb6016d6c1fc
[clitk.git] / tools / clitkDicomInfo.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   clitkDicomInfo.cxx
21    * @author Laurent ZAGNI <laurent.zagni@insa-lyon.fr>
22    * @date   27 Jul 2006
23    -------------------------------------------------*/
24
25 // clitk includes
26 #include "clitkDicomInfo_ggo.h"
27 #include "clitkCommon.h"
28
29 // itk (gdcm) include
30 #include "gdcmFile.h"
31
32 //--------------------------------------------------------------------
33 int main(int argc, char * argv[]) {
34
35   // init command line
36   GGO(clitkDicomInfo, args_info);
37
38   // check arg
39   if (args_info.inputs_num == 0) return 0;
40
41   // Loop files
42   for(unsigned int i=0; i<args_info.inputs_num; i++) {
43     gdcm::File *header = new gdcm::File();
44     header->SetFileName(args_info.inputs[i]);
45     header->SetMaxSizeLoadEntry(16384);
46     header->Load();
47     header->Print();
48   }
49
50   // this is the end my friend  
51   return 0;
52 }
53 //--------------------------------------------------------------------