+[ gdcm-MR-SIEMENS-16-1.acr
+ # - Particularities:
+ # * old (circa 1991) ACR NEMA version 1.0 format.
+ # * the image pixel data looks corrupted (see below)
+ # * wierd padding of "Manufacturer's Model Name" tag
+ # * "Photometric Interpretation" tag is absent
+ # * Group 20 does NOT contain:
+ # - "Study"
+ # - "Serie Instance UID"
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "GBS III " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "gdcm::Unfound" # Photometric Interpretation
+ 0028|0010 "256" # Rows
+ 0028|0011 "256" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "gdcm::Unfound" # Transfer Syntax UID
+ 0008|0060 "MR" # Modality
+ # Note: the image pixel data looks corrupted in the sense that the
+ # following sizes do NOT match (as expected):
+ # - it's pixel data is 132096 bytes long
+ # - it has a size of 256x256 with 16 bytes per pixel, i.e. a size
+ # of 256*256*2 = 131072 bytes.
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:8192 Length:132096 x(20400)"
+]
+
+############################################################
+### ACR NEMA version 2.0 (TWO!) format:
+############################################################
+[ gdcm-MR-SIEMENS-16-2.acr
+ # - Particularities:
+ # * old (circa 2000) ACR NEMA version 2.0 format.
+ # * wierd padding of "Series Number" tag
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "MAGNETOM VISION " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "gdcm::Unfound" # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "gdcm::Unfound" # Transfer Syntax UID
+ 0008|0010 "ACR-NEMA 2.0" # Recognition Code (RET)
+ 0008|0060 "MR" # Modality
+ 0020|0011 " 7" # Series Number
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:6052 Length:524288 x(80000)"
+]
+
+[ SIEMENS_MAGNETOM-12-ACR_NEMA_2-Modern.dcm
+ # - Particularities:
+ # * "Modern" ACR NEMA version 2.0 format i.e. the 0x0020 group contains
+ # "Study Instance UID", "Study ID", "Series Number" and
+ # "Serie Instance UID"
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "MAGNETOM VISION " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "gdcm::Unfound" # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "gdcm::Unfound" # Transfer Syntax UID
+ 0008|0010 "ACR-NEMA 2.0" # Recognition Code (RET)
+ 0008|0060 "MR" # Modality
+ 0020|000d "1.3.12.2.1107.5.2.4.7630.20000918174641000" # Study Instance UID
+ 0020|000e "1.3.12.2.1107.5.2.4.7630.20000918175714000007 " # Series Instance
+ # UID
+ 0020|0011 " 7" # Series Number
+ 0020|0010 " 1" # Study ID
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:6052 Length:524288 x(80000)"
+]
+
+#############################################################################
+### Images with various oddities...
+#############################################################################
+[ gdcm-US-ALOKA-16.dcm
+ # - Particularities:
+ # * possesses 3 LUTs (Segmented Palette Color): a Green (checked), a
+ # Red and Blue.
+ # * announced as implicit VR, but really explicit VR !
+ # * has a color palette (see Photometric Interpretation)
+ 0008|0070 "ALOKA CO., LTD. " # Manufacturer
+ 0008|1090 "SSD-4000" # Manufacturer's Model Name
+ 0028|0101 "16" # Bits Stored
+ 0028|0004 "PALETTE COLOR " # Photometric Interpretation
+ 0028|0010 "480" # Rows
+ 0028|0011 "640" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "15" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2" # Transfer Syntax (Implicit VR, LE)
+ 0008|0060 "US" # Modality
+ # The Segmented Palette Color Lookup Table Data:
+ # Red
+ 0028|1221 "gdcm::NotLoaded (BinEntry) Address:1750 Length:87818 x(1570a)"
+ # Green
+ 0028|1222 "gdcm::NotLoaded (BinEntry) Address:89576 Length:113784 x(1bc78)"
+ # Blue
+ 0028|1223 "gdcm::NotLoaded (BinEntry) Address:203368 Length:55364 x(d844)"
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:258740 Length:614400 x(96000)"
+]
+
+[ gdcm-MR-PHILIPS-16-Multi-Seq.dcm
+ # - Particularities:
+ # * dicom file, with a recognition code of ACR-NEMA1
+ # * Highly nested sequence (6 sublevels) with an impressive size
+ # of 28808 bytes at tag (0x0029, 0x263d)
+ # * possesses many sequences in group 0x0029
+ 0008|0070 "Philips Medical Systems " # Manufacturer
+ 0008|1090 "Gyroscan Intera " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "128" # Rows
+ 0028|0011 "128" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.1" # Transfer Syntax: Explicit VR, LE
+ 0008|0060 "MR" # Modality
+ 0008|0010 "ACR-NEMA 1.0" # Recognition Code (RET)
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:35846 Length:32768 x(8000)"
+]
+
+[ gdcm-CR-DCMTK-16-NonSamplePerPix.dcm
+ # - Particularities:
+ # * probably generated with dcmtk (DICOM Toolkit, refer to
+ # http://dicom.offis.de/dcmtk.php.en)
+ # * Misses the "Samples Per Pixel" element which prevents
+ # e-film from reading it.
+ # * Misses the Manufacturer related info
+ 0008|0070 "gdcm::Unfound" # Manufacturer
+ 0008|1090 "gdcm::Unfound" # Manufacturer's Model Name
+ 0028|0101 "8" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "750" # Rows
+ 0028|0011 "750" # Columns
+ 0028|0100 "8" # Bits Allocated
+ 0028|0102 "7" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.1" # Transfer Syntax: Explicit VR, LE
+ 0008|0060 "CR" # Modality
+ 0002|0013 "OFFIS_DCMTK_341 " # Implementation Version Name
+ 0028|0002 "gdcm::Unfound" # Samples per Pixel
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:740 Length:562500 x(89544)"
+]
+
+[ gdcm-MR-PHILIPS-16-NonRectPix.dcm
+ # - Particularities:
+ # * Non rectangular pixels (see "Pixel Spacing" tag)
+ # * private tags are in explicit VR (which is normal BTW)
+ 0008|0070 "Philips Medical Systems " # Manufacturer
+ 0008|1090 "Gyroscan Intera " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "64" # Rows
+ 0028|0011 "160" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.1" # Transfer Syntax: Explicit VR, LE
+ 0008|0060 "MR" # Modality
+ 0028|0030 " 0.487416\0.194966" # Pixel Spacing
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:5010 Length:20480 x(5000)"
+]
+
+[ SIEMENS_Sonata-16-MONO2-Value_Multiplicity.dcm
+ # - Particularities:
+ # * contains a tag with value multiplicity bigger than 1: the
+ # tag (0x0018, 0x1310) has "US" as value representation BUT
+ # has a size of 8 bytes (i.e. it contains FOUR short integers)
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "Sonata" # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "208" # Rows
+ 0028|0011 "256" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.1" # Transfer Syntax: Explicit VR, LE
+ 0008|0060 "MR" # Modality
+ 0018|1310 "256\0\0\166" # Acquisition Matrix
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:25686 Length:106496 x(1a000)"
+]
+
+[ PICKER-16-MONO2-No_DicomV3_Preamble.dcm
+ # - Particularities:
+ # * looks like a DICOM V3 image but it misses the proper file
+ # file preamble (of 200 bytes).
+ 0008|0070 "Picker International, Inc." # Manufacturer
+ 0008|1090 "HF1006" # Manufacturer's Model Name
+ 0028|0101 "16" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "15" # High Bit
+ 0028|0103 "1" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2" # Transfer Syntax: Implicit VR, LE
+ 0008|0060 "MR" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:1406 Length:524288 x(80000)"
+]
+
+[ PHILIPS_Gyroscan-8-MONO2-Odd_Sequence.dcm
+ # - Particularities:
+ # * Contains an odd sequence at tag (0x0008, 0x1140).
+ # JPR FIXME: in what sense is to odd ???
+ 0008|0070 "Philips Medical Systems " # Manufacturer
+ 0008|1090 "Gyroscan Intera " # Manufacturer's Model Name
+ 0028|0101 "8" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "256" # Rows
+ 0028|0011 "256" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "7" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2" # Transfer Syntax: Implicit VR, LE
+ 0008|0060 "MR" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:6584 Length:131072 x(20000)"
+]
+
+[ PICKER-16-MONO2-Nested_icon.dcm
+ # - Particularities:
+ # * contains TWO images:
+ # - the original image 512x512
+ # - an 8x8 icon hiden in sequence encountered at tag (0x0088, 0x0200)
+ # This implies this image contains two 7fe0|0010 (among one is
+ # burried in a sequence), two "Rows" entries, two "Columns" entries...
+ # This makes it impossible to use the name of tag (e.g. Rows) as
+ # as a key of dictionaries build on top of such an image....
+ 0008|0070 "PICKER" # Manufacturer
+ 0008|1090 "gdcm::Unfound" # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2" # Transfer Syntax: Implicit VR, LE
+ 0008|0060 "CT" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:18228 Length:524288 x(80000)"
+]
+
+[ KODAK-12-MONO1-Odd_Terminated_Sequence.dcm
+ # - Particularities:
+ # * within the sequence at tag (0x0028, 0x3000) we encounter
+ # an "Item Delimitation" (0xfffe, 0xe00d) followed by an
+ # "Sequence Delimitation Item" (0xfffe, 0xe0dd) just after
+ # the tag (0x0028, 0x3006) !!!
+ # * looks like an ACR-NEMA V2 [allthough no "Recognition Code"
+ # (0x0008, 0x0010) is present].
+ 0008|0070 "Kodak " # Manufacturer
+ 0008|1090 "gdcm::Unfound" # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME1 " # Photometric Interpretation
+ 0028|0010 "2392" # Rows
+ 0028|0011 "1792" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "gdcm::Unfound" # Transfer Syntax: Implicit VR, LE
+ 0008|0060 "CR" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:9134 Length:8572928 x(82d000)"
+]
+
+############################################################
+### Jpeg compressed images.
+############################################################
+[ gdcm-JPEG-Extended.dcm
+ # - Particularities:
+ # * jpeg compression [Extended Process (2,4)]
+ # * probably contains additional data after the pixels (see comments
+ # of the gdcm-JPEG-LossLess3a.dcm entry)
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "Volume Zoom " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.4.51" # Transfer Syntax: jpeg extended
+ # process (2,4)
+ 0008|0060 "CT" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:2946 Length:192218 x(2eeda)"
+]
+
+[ gdcm-JPEG-Extended-Allready_present.dcm
+ # JPR FIXME: this image is REALLY close to gdcm-JPEG-Extended.dcm in
+ # terms of features (actually I suspect gdcm-JPEG-Extended.dcm
+ # is the anoymized version of this one)...
+ # - Particularities:
+ # * jpeg compression [Extended Process (2,4)]
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "Volume Zoom " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.4.51" # Transfer Syntax: jpeg extended
+ # process (2,4)
+ 0008|0060 "CT" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:2946 Length:192218 x(2eeda)"
+]
+
+[ gdcm-JPEG-LossLess3a.dcm
+ # - Particularities:
+ # * jpeg compression [Lossless, hierar., first-order prediction
+ # (Process 14, Selection Value 1) ]
+ # * contains additional data after the pixels (see below)
+ # * contains a sequence at tag (0x0008, 0x2112)
+ 0008|0070 "SIEMENS " # Manufacturer
+ 0008|1090 "Volume Zoom " # Manufacturer's Model Name
+ 0028|0101 "12" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "512" # Rows
+ 0028|0011 "512" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "11" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.4.70" # Transfer Syntax: jpeg extended
+ # process (2,4)
+ 0008|0060 "CT" # Modality
+ # It looks like the pixel data are corrupted:
+ # As stated by "od -A d -c"
+ # 0002528 à 177 020 \0 O B \0 \0 ÿ ÿ ÿ ÿ þ ÿ \0 à
+ # 0002544 \0 \0 \0 \0 þ ÿ \0 à 202 ? 003 \0 ÿ Ø ÿ Ã
+ # which we interpret as follows:
+ # - 2528: (à 177, 020 \0) = (0x7fe0, 0x0010) i.e. Pixel Data tag,
+ # - 2532: OB i.e. encapsulated encoded Pixel Data,
+ # - 2534: Two bytes reserved,
+ # - 2536: ÿ ÿ ÿ ÿ = 0xffffffff i.e. data element length is undefined.
+ # - 2540: (þ ÿ, \0 à) = (0xfffe, 0xe000) i.e. basic offset table
+ # item tag
+ # - 2544: \0 \0 \0 \0 i.e. offset table as length zero, i.e. no
+ # item value for offset table.
+ # - 2548: (þ ÿ, \0 à) = (0xfffe, 0xe000) i.e. item tag of first
+ # fragment of (encoded) pixel data.
+ # - 2552: 202 ? 003 \0 = 212866 bytes i.e. length of first fragment
+ # of (encoded) pixel data.
+ # and so the next item tag should be found at the 2556+212866 th
+ # octet i.e. at address 215422. But, as stated by od, we find:
+ # 0215408 E u Ö 026 Î É 7 ¬ Ã ¸ ó ¿ ÿ Ù \f °
+ # 0215424 ¶ 016 P Ñ 002 016
+ # and (\f °, ¶ 016) is NOT an OB item TAG which is required to be
+ # present (at least there should be a sequence delimiter), refer to
+ # PS 3.5-2001 page 50.
+ #
+ # As stated by JPR in hexa:
+ # at 9ec : ItemTag : fffe,e000
+ # at 9f0 : Basic Offset Table Item Lentgh (??) 0 x(00000000)
+ # at 9f4 : ItemTag : fffe,e000
+ # at 9f8 : fragment length 212866 x(00033f82)
+ # at 3497e : ItemTag b00c,0eb6 (should be fffe,e000 or fffe,e0dd):
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:2540 Length:212890 x(33f9a)"
+]
+
+[ gdcm-JPEG-LossLessThoravision.dcm
+ # - Particularities:
+ # * jpeg compression [Lossless, hierar., first-order prediction
+ # (Process 14, Selection Value 1) ]
+ # * encoding is sligthly different from the one of entry
+ # gdcm-JPEG-LossLess3a.dcm (to check).
+ # * Large picture: 2076 by 1876 (I wonder what screens they have...)
+ 0008|0070 "Philips Medical Systems " # Manufacturer
+ 0008|1090 "Cassette Holder Type 9840 500 35201 " # Manufacturer's Model Name
+ 0028|0101 "15" # Bits Stored
+ 0028|0004 "MONOCHROME2 " # Photometric Interpretation
+ 0028|0010 "2076" # Rows
+ 0028|0011 "1876" # Columns
+ 0028|0100 "16" # Bits Allocated
+ 0028|0102 "14" # High Bit
+ 0028|0103 "0" # Pixel Representation
+ 0002|0010 "1.2.840.10008.1.2.4.70" # Transfer Syntax: jpeg extended
+ # process (2,4)
+ 0008|0060 "CR" # Modality
+ 7fe0|0010 "gdcm::NotLoaded (BinEntry) Address:3144 Length:4795668 x(492d14)"
+]
+