PrivateDict.py
"""
"""
import gdcm
import sys,os
if __name__ == "__main__":
#gdcm.Trace.DebugOn()
globInst = gdcm.Global.GetInstance()
# Try to load Part3.xml file
# This file is too big for being accessible directly at runtime.
globInst.LoadResourcesFiles()
# Get a private tag from the runtime dicts. LoadResourcesFiles could
# have failed but this has no impact on the private dict
d = globInst.GetDicts()
print d.GetDictEntry( gdcm.Tag(0x0029,0x0010) ,"SIEMENS CSA HEADER" )
pd = d.GetPrivateDict()
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