GDCM: PrivateDict.py

GDCM 3.2.8

PrivateDict.py
1
14
15"""
16"""
17
18import gdcm
19import sys,os
20
21if __name__ == "__main__":
22 #gdcm.Trace.DebugOn()
23 globInst = gdcm.Global.GetInstance()
24 # Try to load Part3.xml file
25 # This file 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") )
gdcm::Global::GetInstance
static Global & GetInstance()
return the singleton instance
gdcm::PrivateTag
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner).
Definition gdcmPrivateTag.h:39
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39