GDCM  2.2.6
PrivateDict.py
1 ############################################################################
2 #
3 # Program: GDCM (Grassroots DICOM). A DICOM library
4 #
5 # Copyright (c) 2006-2011 Mathieu Malaterre
6 # All rights reserved.
7 # See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
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 above copyright notice for more information.
12 #
13 ############################################################################
14 
15 """
16 """
17 
18 import gdcm
19 import sys,os
20 
21 if __name__ == "__main__":
22  #gdcm.Trace.DebugOn()
23  globInst = gdcm.Global.GetInstance()
24  # Try to load Part3.xml file
25  # This fils is too big for being accessible directly at runtime.
26  globInst.LoadResourcesFiles()
27 
28 
29  # Get a private tag from the runtime dicts. LoadResourcesFiles could
30  # have failed but this has no impact on the private dict
31 
32  d = globInst.GetDicts()
33  print d.GetDictEntry( gdcm.Tag(0x0029,0x0010) ,"SIEMENS CSA HEADER" )
34  pd = d.GetPrivateDict()
35  print pd.GetDictEntry( gdcm.PrivateTag(0x0029,0x0010,"SIEMENS CSA HEADER") )

Generated on Sat Dec 21 2013 05:56:15 for GDCM by doxygen 1.8.5
SourceForge.net Logo