-from load import *
+from gdcmPython import *
-# Where all the test images are
-TestFileDir = os.path.join("..", "..", "Data")
+# Test each file of the Data directory
AllFiles = [
"CR-MONO1-10-chest.dcm",
if __name__ == '__main__':
for file in AllFiles:
- fileName = os.path.join(TestFileDir, file)
+ fileName = os.path.join(GDCM_DATA_PATH, file)
print "############## file :", fileName
- toRead = gdcm.gdcmHeader(fileName)
- toRead.LoadElements()
+ toRead = gdcmHeader(fileName)
ValDict = toRead.GetPubElVal()
for key in ValDict.keys():
print " [%s] = [%s]" %(key, ValDict[key])
-