1 from gdcmPython import *
3 # Test each file of the Data directory
6 "CR-MONO1-10-chest.dcm",
7 "CT-MONO2-16-brain.dcm",
9 "CT-MONO2-16-ankle.dcm",
10 "CT-MONO2-8-abdo.dcm",
11 "CT-MONO2-12-lomb-an2.acr2",
12 "CT-MONO2-16-chest.dcm",
13 "MR-MONO2-12-angio-an1.acr1",
14 "MR-MONO2-12-an2.acr2",
15 "MR-MONO2-16-head.dcm",
16 "MR-MONO2-12-shoulder.dcm",
19 "US-RGB-8-esopecho.dcm",
20 "US-RGB-8-epicard.dcm",
21 "MR-MONO2-8-16x-heart.dcm",
22 "NM-MONO2-16-13x-heart.dcm",
23 "US-MONO2-8-8x-execho.dcm",
24 "US-PAL-8-10x-echo.dcm",
25 "XA-MONO2-8-12x-catheter.dcm",
28 if __name__ == '__main__':
30 fileName = os.path.join(GDCM_DATA_PATH, file)
31 print "############## file :", fileName
32 toRead = gdcmHeader(fileName)
33 ValDict = toRead.GetPubElVal()
34 for key in ValDict.keys():
35 print " [%s] = [%s]" %(key, ValDict[key])