]> Creatis software - clitk.git/blob - tools/clitkDicomInfo.cxx
990f68454eb46f8a2e660aeacd1c535a20c2a366
[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
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(163840);
47     header->Load();
48     header->Print();
49   }
50
51   // this is the end my friend
52   return 0;
53 }
54 //--------------------------------------------------------------------