["Pixel Representation", "0"],
["Manufacturer", "FUJI PHOTO FILM CO. LTD."],
["Manufacturer Model Name", "9000"],
["Pixel Representation", "0"],
["Manufacturer", "FUJI PHOTO FILM CO. LTD."],
["Manufacturer Model Name", "9000"],
["Pixel Representation", "1"],
["Manufacturer", "Picker International, Inc."],
["Manufacturer Model Name", "PQ5000"],
["Pixel Representation", "1"],
["Manufacturer", "Picker International, Inc."],
["Manufacturer Model Name", "PQ5000"],
["CT-MONO2-16-ort.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit VR, LE
["Modality", "CT"],
["CT-MONO2-16-ort.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit VR, LE
["Modality", "CT"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "HiSpeed CT/i"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "HiSpeed CT/i"],
["CT-MONO2-16-ankle.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit, little
["Modality", "CT"],
["CT-MONO2-16-ankle.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit, little
["Modality", "CT"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "GENESIS_ZEUS"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "GENESIS_ZEUS"],
["CT-MONO2-8-abdo.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit, little
["Modality", "CT"],
["CT-MONO2-8-abdo.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Implicit, little
["Modality", "CT"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "FUJI"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "FUJI"],
["CT-MONO2-12-lomb-an2.acr2",
[ ["Modality", "CT"],
#"Transfer Syntax UID" and "Photometric Interpretation" are absent.
["CT-MONO2-12-lomb-an2.acr2",
[ ["Modality", "CT"],
#"Transfer Syntax UID" and "Photometric Interpretation" are absent.
["High Bit", "11"],
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["High Bit", "11"],
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["CT-MONO2-16-chest.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.70"], # jpeg...
["Modality", "CT"],
["CT-MONO2-16-chest.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.70"], # jpeg...
["Modality", "CT"],
["High Bit", "15"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["High Bit", "15"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
####################################
### MR modality examples:
####################################
####################################
### MR modality examples:
####################################
["Pixel Representation", "0"],
["Manufacturer", "Philips"],
# Note: 256*256*12/8 = 98304
["Pixel Representation", "0"],
["Manufacturer", "Philips"],
# Note: 256*256*12/8 = 98304
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["Manufacturer Model Name", "MAGNETOM VISION"],
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["Manufacturer Model Name", "MAGNETOM VISION"],
["MR-MONO2-16-head.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Imp VR, LE
["Modality", "MR"],
["MR-MONO2-16-head.dcm",
[ ["Transfer Syntax UID", "1.2.840.10008.1.2"], # Imp VR, LE
["Modality", "MR"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "GENESIS_SIGNA"],
["Pixel Representation", "1"],
["Manufacturer", "GE MEDICAL SYSTEMS"],
["Manufacturer Model Name", "GENESIS_SIGNA"],
# MR-MONO2-12-shoulder example is present in the Jpeg section.
# MR-MONO2-16-knee is not present in the test suite since it is too
# closely related to MR-MONO2-16-head.dcm to be of interest.
# MR-MONO2-12-shoulder example is present in the Jpeg section.
# MR-MONO2-16-knee is not present in the test suite since it is too
# closely related to MR-MONO2-16-head.dcm to be of interest.
# OT-MONO2-8-colon is not present in the test suite since it is too
# closely related to OT-MONO2-8-a7 to be of interest.
["OT-MONO2-8-a7.dcm",
# OT-MONO2-8-colon is not present in the test suite since it is too
# closely related to OT-MONO2-8-a7 to be of interest.
["OT-MONO2-8-a7.dcm",
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
####################################
# US (Ultra Sound) modality examples:
####################################
####################################
# US (Ultra Sound) modality examples:
####################################
["Manufacturer", "Acme Products"],
# FIXME: 92160 / (120*256) = 3 bytes per pixel NOT 1. Maybe
# it has something to do with [Samples Per Pixel] = [3] ???
["Manufacturer", "Acme Products"],
# FIXME: 92160 / (120*256) = 3 bytes per pixel NOT 1. Maybe
# it has something to do with [Samples Per Pixel] = [3] ???
["US-RGB-8-epicard.dcm",
# Interest: Big endian transfert syntax
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.2"], # Big endian
["US-RGB-8-epicard.dcm",
# Interest: Big endian transfert syntax
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.2"], # Big endian
# FIXME: 921600/(480*640) = 3 bytes per pixel NOT 1. Maybe
# it has something to do with [Samples Per Pixel] = [3] ???
["Implementation Version Name", "OFFIS-DCMTK-311"],
# FIXME: 921600/(480*640) = 3 bytes per pixel NOT 1. Maybe
# it has something to do with [Samples Per Pixel] = [3] ???
["Implementation Version Name", "OFFIS-DCMTK-311"],
["Pixel Representation", "0"],
["Manufacturer", "Philips"],
# Note: 256*256*16=1048576 (16 is the number of Frames)
["Pixel Representation", "0"],
["Manufacturer", "Philips"],
# Note: 256*256*16=1048576 (16 is the number of Frames)
["NM-MONO2-16-13x-heart.dcm",
# Interest: NM modality, multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.1"], # ExpVR, LE
["NM-MONO2-16-13x-heart.dcm",
# Interest: NM modality, multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.1"], # ExpVR, LE
["Pixel Representation", "0"],
["Manufacturer", "ACME Products"],
# Note: 64*64*13*2=106496
["Pixel Representation", "0"],
["Manufacturer", "ACME Products"],
# Note: 64*64*13*2=106496
["US-MONO2-8-8x-execho.dcm",
# Interest: multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.1"], # ExpVR, LE
["US-MONO2-8-8x-execho.dcm",
# Interest: multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.1"], # ExpVR, LE
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Acme Products"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Acme Products"],
["US-PAL-8-10x-echo.dcm",
# Interest: RLE (Run Length Encoded) compression, multiframe
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.5"], # RLE
["US-PAL-8-10x-echo.dcm",
# Interest: RLE (Run Length Encoded) compression, multiframe
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.5"], # RLE
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "ACME Products"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "ACME Products"],
["XA-MONO2-8-12x-catheter.dcm",
# Interest: XA modality, multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.70"], # jpeg
["XA-MONO2-8-12x-catheter.dcm",
# Interest: XA modality, multi-frame
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.70"], # jpeg
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Acme Products"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Manufacturer", "Acme Products"],
["Manufacturer Model Name", "GBS III"],
# FIXME: this image looks padded at the end. The length of the file
# is 140288. Notice that, 256*256*2 + 1024 = 131072 + 1024 = 132096
["Manufacturer Model Name", "GBS III"],
# FIXME: this image looks padded at the end. The length of the file
# is 140288. Notice that, 256*256*2 + 1024 = 131072 + 1024 = 132096
# Oddities: "Study ID" and "Series Number" are empty
["Study ID", ""],
["Series Number", ""] ] ],
# Oddities: "Study ID" and "Series Number" are empty
["Study ID", ""],
["Series Number", ""] ] ],
["gdcm-US-ALOKA-16.dcm",
# Interest: - possesses 3 LUTS: a Green (checked), a Red and BLue.
# - announced as implicit VR, but really explicit VR.
["gdcm-US-ALOKA-16.dcm",
# Interest: - possesses 3 LUTS: a Green (checked), a Red and BLue.
# - announced as implicit VR, but really explicit VR.
["Pixel Representation", "0"],
["Manufacturer", "ALOKA CO., LTD."],
["Manufacturer Model Name", "SSD-4000"],
["Pixel Representation", "0"],
["Manufacturer", "ALOKA CO., LTD."],
["Manufacturer Model Name", "SSD-4000"],
["gdcm-MR-PHILIPS-16.dcm",
# Interest: - possesses a sequence
# - dicom file, with a recognition code of ACR-NEMA1
["gdcm-MR-PHILIPS-16.dcm",
# Interest: - possesses a sequence
# - dicom file, with a recognition code of ACR-NEMA1
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Sequence Variant", "OTHER"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Sequence Variant", "OTHER"],
["gdcm-MR-PHILIPS-16-Multi-Seq.dcm",
# Interest: - possesses many sequences in group 0x0029
# - Big sequence 28808 bytes at (0x0029, 0x263d)
["gdcm-MR-PHILIPS-16-Multi-Seq.dcm",
# Interest: - possesses many sequences in group 0x0029
# - Big sequence 28808 bytes at (0x0029, 0x263d)
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Sequence Variant", "OTHER"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Sequence Variant", "OTHER"],
["gdcm-MR-PHILIPS-16-NonRectPix.dcm",
# Interest: - pixels are non rectangular
# - private elements are in explicit VR (which is normal)
["gdcm-MR-PHILIPS-16-NonRectPix.dcm",
# Interest: - pixels are non rectangular
# - private elements are in explicit VR (which is normal)
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Pixel Spacing", "0.487416\\0.194966"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan Intera"],
["Pixel Spacing", "0.487416\\0.194966"],
["gdcm-CR-DCMTK-16-NonSamplePerPix.dcm",
# Interest: - Misses the "Samples Per Pixel" element which prevents
# e-film from reading it.
["gdcm-CR-DCMTK-16-NonSamplePerPix.dcm",
# Interest: - Misses the "Samples Per Pixel" element which prevents
# e-film from reading it.
["High Bit", "7"],
["Pixel Representation", "0"],
["Implementation Version Name", "OFFIS_DCMTK_341"],
["High Bit", "7"],
["Pixel Representation", "0"],
["Implementation Version Name", "OFFIS_DCMTK_341"],
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["Manufacturer Model Name", "Volume Zoom"],
["Pixel Representation", "0"],
["Manufacturer", "SIEMENS"],
["Manufacturer Model Name", "Volume Zoom"],
["MR-MONO2-12-shoulder.dcm",
# Interest: Jpeg compression [Lossless, non-hierar. (14)]
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.57"],
["MR-MONO2-12-shoulder.dcm",
# Interest: Jpeg compression [Lossless, non-hierar. (14)]
[ ["Transfer Syntax UID", "1.2.840.10008.1.2.4.57"],
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan NT"],
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Gyroscan NT"],
["gdcm-JPEG-LossLess3a.dcm",
# Interest: - Jpeg compression [Lossless, hierar., first-order
# pred. 14, Select. Val. 1]
["gdcm-JPEG-LossLess3a.dcm",
# Interest: - Jpeg compression [Lossless, hierar., first-order
# pred. 14, Select. Val. 1]
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Cassette Holder Type 9840 500 35201"],
["Pixel Representation", "0"],
["Manufacturer", "Philips Medical Systems"],
["Manufacturer Model Name", "Cassette Holder Type 9840 500 35201"],
ComputeSign = md5.new(open(TargetFileName).read()).hexdigest()
#print ComputeSign
self.assertEqual(ComputeSign, Sign,
ComputeSign = md5.new(open(TargetFileName).read()).hexdigest()
#print ComputeSign
self.assertEqual(ComputeSign, Sign,