]> Creatis software - gdcmData.git/blob - TestAllEntryVerifyReference.txt
Comment on gdcm-US-ALOKA-16.dcm oversized lut.
[gdcmData.git] / TestAllEntryVerifyReference.txt
1 # TestAllEntryVerifyReference.txt
2 #
3 # This file describes for (hopefully) all the images of this repository
4 # the Dicom field entries that we use for the test suite.
5 # Semantics:
6 #   For a given image file, we store the most sensible (to the state of
7 #   gdcm kernel) Dicom entries as a pair (key, value):
8 #   - key is the Dicom tag (i.e. the pair [group,element] represented
9 #     as a string (in hexadecimal with the pipe character acting as a
10 #     separator between the group and the element).
11 #   - value is the Dicom field that corresponds to the tag (and represented
12 #     as a string. For binary entries [like the Pixels (the tag is 7fe0|0010
13 #     usually)], which don't have a string representation, we use the
14 #     string constructed by gdcm e.g.
15 #         "gdcm::NotLoaded Address:776 Length:387200 x(5e880)".
16 # Format:
17 #   - Each image shall be contained in a block delimited by [ and ]
18 #     (square brackets). Nested blocks are an error.
19 #   - each (key, value) pair shall stand on a single line:
20 #     * key is of the form xxxx|yyyy (in hexadecimal) e.g. 0008|0060
21 #     * value is a string delimited by " (double quotes) e.g. "CR"
22 #   - the spaces are the one of C++ [i.e. space, TAB, endline (including
23 #     the empty line)...] 
24 #   - comments shall be preceded by # (sharp character) and be at the
25 #     end of meaningfull information
26 #   - All the information between blocks is discarded, but please use
27 #     the comment syntax (line for the lines you are just reading)
28 # Example:
29 #    [ filename.dcm
30 #      # some nice comments and problems of filename.dcm
31 #      0008|0060 "CR"   # Modality
32 #      0008|1090 "9000" # Manufacturer's model name
33 #      7fe0|0010 "gdcm::NotLoaded Address:776 Length:387200 x(5e880)"
34 #    ]
35 #    This info shall be discarded (and has no comment which is lack of taste)
36 #
37 #    [
38 #      otherFilename.dcm
39 #      # some really nice comments and documentation
40 #      0028|0010 "440"
41 #      0028|0011 "440" ] # Columns
42 #
43 #
44 # File naming conventions:
45 #  the general form shall be (unpresent or meaningfull field are optional)
46 #  [Manufacturer]-[BytesPerPixel]-[PhotoInterpretation]-[SQ]-[Description].EXT
47 #  where :
48 #   - [Manufacturer] represents at best the aquisition device. It can
49 #     can be a blend of the "Manufacturer" and "Manufacturer's Model Name"
50 #     Dicom entries.
51 #   - [BytesPerPixel] is the "Bits Stored" Dicom entry (or "Bits Allocated"
52 #     when "Bits Stored" is absent).
53 #   -[PhotoInterpretation] corresponds to the type of encoding of the image.
54 #     It is a short for the "Photometric Interpretation" Dicom entry e.g.
55 #     PAL (for "PALETTE COLOR"), RGB, YBR (for YBR_FULL),
56 #     YBR422 (for YBR_FULL_4220, MONO2 (for MONOCHROME2)...
57 #   - [SQ] when present indicates that the image contains a sequence.
58 #   - [Description] shall be a concise description of the features
59 #     specificities of the image (e.g. ACR_NEMA_1 to indicate it is an
60 #     old ACR Nema version 1 file format).
61 #   - .EXT is the extension and (allthough meaningless in terms of the
62 #     dicom standard) shall either be .acr (for ACR Nema version 1 and 2)
63 #     or .dcm for Dicom V3 images.
64 # Examples:
65 #   - SIEMENS_GBS_III-16-ACR_NEMA_1.acr does it's best to express
66 #     that this image was produced by a SIEMENS (manufacturer) "GBS III"
67 #     (model name) imaging device. It is encoded on 16 bits per pixel,
68 #     has no "Photometric Interpretation", no sequence, and uses the
69 #     old ACR Nema version 1 file format.
70 #
71 # Note: The files whose name starts with a modality (e.g. CR-MONO1-10-chest.dcm)
72 #       are taken from Sebastien Barre's Dicom2 highly recommendable site
73 #       http://www.barre.nom.fr/medical/samples/index.html
74
75 ############################################################
76 ### As taken from Sebastien Barre's Dicom2 (see note above).
77 ### CR modality examples:
78 ############################################################
79 [ CR-MONO1-10-chest.dcm
80    # - Particularities:
81    #   * "Transfer Syntax UID" is absent.
82    #   Warning : MONOCHROME1 -> *should be* displayed as video inv
83    #                            (nobody seems to care about it ...)
84    0008|0070 "FUJI PHOTO FILM CO. LTD." # Manufacturer
85    0008|1090 "9000"                     # Manufacturer's Model Name
86    0028|0101 "10"                       # Bits Stored
87    0028|0004 "MONOCHROME1 "             # Photometric Interpretation
88    0028|0010 "440"                      # Rows
89    0028|0011 "440"                      # Columns
90    0028|0100 "16"                       # Bits Allocated
91    0028|0102 "9"                        # High Bit
92    0028|0103 "0"                        # Pixel Representation
93    0002|0010 "gdcm::Unfound"            # Transfer Syntax UID
94    0008|0060 "CR"                       # Modality
95    7fe0|0010 "gdcm::NotLoaded Address:776 Length:387200 x(5e880)"
96 ]
97
98 ############################################################
99 ### As taken from Sebastien Barre's Dicom2 (see note above).
100 ### CT modality examples:
101 ############################################################
102 [ CT-MONO2-16-brain.dcm
103    0008|0070 "Picker International, Inc." # Manufacturer
104    0008|1090 "PQ5000"                     # Manufacturer's Model Name
105    0028|0101 "16"                         # Bits Stored
106    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
107    0028|0010 "512"                        # Rows
108    0028|0011 "512"                        # Columns
109    0028|0100 "16"                         # Bits Allocated
110    0028|0102 "15"                         # High Bit
111    0028|0103 "1"                          # Pixel Representation
112    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
113    0008|0060 "CT"                         # Modality
114    7fe0|0010 "gdcm::NotLoaded Address:1680 Length:524288 x(80000)"
115 ]
116
117 [ CT-MONO2-16-ort.dcm
118    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
119    0008|1090 "HiSpeed CT/i"               # Manufacturer's Model Name
120    0028|0101 "16"                         # Bits Stored
121    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
122    0028|0010 "512"                        # Rows
123    0028|0011 "512"                        # Columns
124    0028|0100 "16"                         # Bits Allocated
125    0028|0102 "15"                         # High Bit
126    0028|0103 "1"                          # Pixel Representation
127    0008|0060 "CT"                         # Modality
128    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax (Implicit VR, LE)
129    7fe0|0010 "gdcm::NotLoaded Address:1674 Length:524288 x(80000)"
130 ]
131
132 [ CT-MONO2-16-ankle.dcm 
133    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
134    0008|1090 "GENESIS_ZEUS"               # Manufacturer's Model Name
135    0028|0101 "16"                         # Bits Stored
136    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
137    0028|0010 "512"                        # Rows
138    0028|0011 "512"                        # Columns
139    0028|0100 "16"                         # Bits Allocated
140    0028|0102 "15"                         # High Bit
141    0028|0103 "1"                          # Pixel Representation
142    0008|0060 "CT"                         # Modality
143    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax (Implicit VR, LE)
144    7fe0|0010 "gdcm::NotLoaded Address:1148 Length:524288 x(80000)"
145 ]
146
147 [ CT-MONO2-8-abdo.dcm
148    # - Particularities:
149    #   * "Manufacturer's Model Name" is absent.
150    0008|0070 "FUJI"                       # Manufacturer
151    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
152    0028|0101 "8"                          # Bits Stored
153    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
154    0028|0010 "512"                        # Rows
155    0028|0011 "512"                        # Columns
156    0028|0100 "8"                          # Bits Allocated
157    0028|0102 "7"                          # High Bit
158    0028|0103 "0"                          # Pixel Representation
159    0008|0060 "CT"                         # Modality
160    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax (Implicit VR, LE)
161    7fe0|0010 "gdcm::NotLoaded Address:796 Length:262144 x(40000)"
162 ]
163
164 [ CT-MONO2-12-lomb-an2.acr
165    # - Particularities:
166    #   * "Transfer Syntax UID" is absent.
167    #   * "Photometric Interpretation" is absent.
168    0008|0070 "SIEMENS "                   # Manufacturer
169    0008|1090 "SOMATOM PLUS 4"             # Manufacturer's Model Name
170    0028|0101 "12"                         # Bits Stored
171    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
172    0028|0010 "512"                        # Rows
173    0028|0011 "512"                        # Columns
174    0028|0100 "16"                         # Bits Allocated
175    0028|0102 "11"                         # High Bit
176    0028|0103 "0"                          # Pixel Representation
177    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
178    0008|0060 "CT"                         # Modality
179    7fe0|0010 "gdcm::NotLoaded Address:1230 Length:524288 x(80000)"
180 ]
181
182 [ CT-MONO2-16-chest.dcm
183    # - Particularities:
184    #   * jpeg compression [Lossless, hierar., first-order prediction
185    #     (Process 14, Selection Value 1) ]
186    #   * "Transfer Syntax UID" is absent.
187    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
188    0008|1090 "HiSpeed "                   # Manufacturer's Model Name
189    0028|0101 "16"                         # Bits Stored
190    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
191    0028|0010 "400"                        # Rows
192    0028|0011 "512"                        # Columns
193    0028|0100 "16"                         # Bits Allocated
194    0028|0102 "15"                         # High Bit
195    0028|0103 "1"                          # Pixel Representation
196    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
197                                           # ... Process 14 [Selection Value 1]
198    0008|0060 "CT"                         # Modality
199    7fe0|0010 "gdcm::NotLoaded Address:1638 Length:143498 x(2308a)"
200 ]
201
202 ############################################################
203 ### As taken from Sebastien Barre's Dicom2 (see note above).
204 ### MR modality examples:
205 ### Note: MR-MONO2-16-knee is not present in the test suite
206 ###       since it is too closely related to
207 ###       MR-MONO2-16-head.dcm to be of interest.
208 ############################################################
209 [ MR-MONO2-12-angio-an1.acr
210    # - Particularities:
211    #   * "Photometric Interpretation" is absent.
212    #   * "Transfer Syntax UID" is absent.
213    0008|0070 "Philips "                   # Manufacturer
214    0008|1090 "T5"                         # Manufacturer's Model Name
215    0028|0101 "12"                         # Bits Stored
216    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
217    0028|0010 "256"                        # Rows
218    0028|0011 "256"                        # Columns
219    0028|0100 "12"                         # Bits Allocated
220    0028|0102 "11"                         # High Bit
221    0028|0103 "0"                          # Pixel Representation
222    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
223    0008|0060 "MR"                         # Modality
224    # Note: 256*256*12/8 = 98304 i.e.
225    #       Rows * Columns * Bits_Stored / (8 bits per pixel) = Length in bytes
226    7fe0|0010 "gdcm::NotLoaded Address:650 Length:98304 x(18000)"
227 ]
228
229 [ MR-MONO2-12-an2.acr
230    # - Particularities:
231    #   * "Transfer Syntax UID" is absent.
232    0008|0070 "SIEMENS "                   # Manufacturer
233    0008|1090 "MAGNETOM VISION "           # Manufacturer's Model Name
234    0028|0101 "12"                         # Bits Stored
235    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
236    0028|0010 "256"                        # Rows
237    0028|0011 "256"                        # Columns
238    0028|0100 "16"                         # Bits Allocated
239    0028|0102 "11"                         # High Bit
240    0028|0103 "0"                          # Pixel Representation
241    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
242    0008|0060 "MR"                         # Modality
243    7fe0|0010 "gdcm::NotLoaded Address:1866 Length:131072 x(20000)"
244 ]
245
246 [ MR-MONO2-16-head.dcm
247    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
248    0008|1090 "GENESIS_SIGNA "             # Manufacturer's Model Name
249    0028|0101 "16"                         # Bits Stored
250    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
251    0028|0010 "256"                        # Rows
252    0028|0011 "256"                        # Columns
253    0028|0100 "16"                         # Bits Allocated
254    0028|0102 "15"                         # High Bit
255    0028|0103 "1"                          # Pixel Representation
256    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
257    0008|0060 "MR"                         # Modality
258    7fe0|0010 "gdcm::NotLoaded Address:1804 Length:131072 x(20000)"
259 ]
260
261 [ MR-MONO2-12-shoulder.dcm
262    # - Particularities:
263    #   * jpeg encoding (see "Transfer Syntax UID" tag)
264    0008|0070 "Philips Medical Systems "   # Manufacturer
265    0008|1090 "Gyroscan NT "               # Manufacturer's Model Name
266    0028|0101 "12"                         # Bits Stored
267    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
268    0028|0010 "1024"                       # Rows
269    0028|0011 "1024"                       # Columns
270    0028|0100 "16"                         # Bits Allocated
271    0028|0102 "11"                         # High Bit
272    0028|0103 "0"                          # Pixel Representation
273    0002|0010 "1.2.840.10008.1.2.4.57"     # Transfer Syntax: jpeg,
274                                           #         Lossless, non-hierar. (14)
275    0008|0060 "MR"                         # Modality
276    7fe0|0010 "gdcm::NotLoaded Address:1580 Length:718948 x(af864)"
277 ]
278
279 ############################################################
280 ### As taken from Sebastien Barre's Dicom2 (see note above).
281 ### OT modality examples:
282 ### Note: OT-MONO2-8-hip and OT-MONO2-8-colon are not
283 ###       present in the test suite since they are too
284 ###       closely related to OT-MONO2-8-a7 to be of
285 ###       interest.
286 ############################################################
287 [ OT-PAL-8-face.dcm
288    # - Particularities:
289    #   * has a color palette (see Photometric Interpretation)
290    #   * "Manufacturer" is absent.
291    #   * "Manufacturer's Model Name" is absent.
292    0008|0070 "gdcm::Unfound"              # Manufacturer
293    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
294    0028|0101 "8"                          # Bits Stored
295    0028|0004 "PALETTE COLOR "             # Photometric Interpretation
296    0028|0010 "480"                        # Rows
297    0028|0011 "640"                        # Columns
298    0028|0100 "8"                          # Bits Allocated
299    0028|0102 "7"                          # High Bit
300    0028|0103 "0"                          # Pixel Representation
301    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
302    0008|0060 "OT"                         # Modality
303    0028|0002 "1"                          # Samples per Pixel
304    7fe0|0010 "gdcm::NotLoaded Address:1654 Length:307200 x(4b000)"
305 ]
306
307 [ OT-MONO2-8-a7.dcm
308    # - Particularities:
309    #   * "Manufacturer's Model Name" is absent.
310    #   * "Transfer Syntax UID" is absent.
311    0008|0070 "Philips Medical Systems "   # Manufacturer
312    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
313    0028|0101 "8"                          # Bits Stored
314    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
315    0028|0010 "512"                        # Rows
316    0028|0011 "512"                        # Columns
317    0028|0100 "8"                          # Bits Allocated
318    0028|0102 "7"                          # High Bit
319    0028|0103 "0"                          # Pixel Representation
320    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
321    0008|0060 "OT"                         # Modality
322    7fe0|0010 "gdcm::NotLoaded Address:438 Length:262144 x(40000)"
323 ]
324
325 ############################################################
326 ### As taken from Sebastien Barre's Dicom2 (see note above).
327 ### US modality examples:
328 ############################################################
329 [ US-RGB-8-esopecho.dcm
330    # - Particularities:
331    #   * RGB image (see Photometric Interpretation)
332    #   * "Manufacturer's Model Name" is absent.
333    0008|0070 "Acme Products "             # Manufacturer
334    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
335    0028|0101 "8"                          # Bits Stored
336    0028|0004 "RGB "                       # Photometric Interpretation
337    0028|0010 "120"                        # Rows
338    0028|0011 "256"                        # Columns
339    0028|0100 "8"                          # Bits Allocated
340    0028|0102 "7"                          # High Bit
341    0028|0103 "0"                          # Pixel Representation
342    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
343    0008|0060 "US"                         # Modality
344    # Note: since "Planar configuration" is 0, the Pixels are layed out
345    #       as RGB, RGB, RGB... (as opposed to US-RGB-8-epicard.dcm)
346    0028|0006 "0"                          # Planar Configuration
347    0028|0002 "3"                          # Samples per Pixel
348    # Note: - 120 * 256 * 3 = 92160 i.e.
349    #       Rows * Columns * Samples_per_Pixel = Total_number_of_bytes
350    #       "Samples per Pixel" is 3 since this is an RGB image (see
351    #       "Photometric Interpretation" entry).
352    7fe0|0010 "gdcm::NotLoaded Address:904 Length:92160 x(16800)"
353 ]
354
355 [ US-RGB-8-epicard.dcm
356    # - Particularities:
357    #   * Big Endian transfer syntax
358    #   * RGB image (see Photometric Interpretation)
359    0008|0070 "G.E. Medical Systems"       # Manufacturer
360    0008|1090 "LOGIQ 700 "                 # Manufacturer's Model Name
361    0028|0101 "8"                          # Bits Stored
362    0028|0004 "RGB "                       # Photometric Interpretation
363    0028|0010 "480"                        # Rows
364    0028|0011 "640"                        # Columns
365    0028|0100 "8"                          # Bits Allocated
366    0028|0102 "7"                          # High Bit
367    0028|0103 "0"                          # Pixel Representation
368    0002|0010 "1.2.840.10008.1.2.2"        # Transfer Syntax: Big Endian
369    0008|0060 "US"                         # Modality
370    # Note: since "Planar configuration" is 1, the Pixels are layed out
371    #       as Plane R, Plane G, Plane B (as opposed to US-RGB-8-esopecho.dcm).
372    0028|0006 "1"                          # Planar Configuration
373    0028|0002 "3"                          # Samples per Pixel
374    # Note: 480 * 640 * 3 = 921600 i.e.
375    #       Rows * Columns * Samples_per_Pixel = Total_number_of_bytes
376    #       "Samples per Pixel" is 3 since this is an RGB image (see
377    #       "Photometric Interpretation" entry).
378    7fe0|0010 "gdcm::NotLoaded Address:1012 Length:921600 x(e1000)"
379 ]
380
381 ############################################################
382 ### Multi-frame images: the number of images is contained
383 ### in the "Number of Frames" tag. Note that this tag may
384 ### a value representation of "IS" which implies it's
385 ### content can be padded wich an extra space (refer to
386 ### US-PAL-8-10x-echo.dcm for an example).
387 ############################################################
388 [ MR-MONO2-8-16x-heart.dcm
389    # - Particularities:
390    #   * Multiframe image (see Number of Frames tag)
391    #   * "Manufacturer's Model Name" is absent.
392    0008|0070 "Philips "                   # Manufacturer
393    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
394    0028|0101 "8"                          # Bits Stored
395    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
396    0028|0010 "256"                        # Rows
397    0028|0011 "256"                        # Columns
398    0028|0100 "8"                          # Bits Allocated
399    0028|0102 "7"                          # High Bit
400    0028|0103 "0"                          # Pixel Representation
401    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
402    0008|0060 "MR"                         # Modality
403    0028|0008 "16"                         # Number of Frames
404    # Note: 256 * 256 * 16 = 1048576 i.e.
405    #       Rows * Columns * Number_of_Frames = Total_number_of_bytes
406    7fe0|0010 "gdcm::NotLoaded Address:920 Length:1048576 x(100000)"
407 ]
408
409 [ NM-MONO2-16-13x-heart.dcm
410    # - Particularities:
411    #   * Multiframe image (see Number of Frames tag)
412    0008|0070 "ACME Products "             # Manufacturer
413    0008|1090 "P3000 "                     # Manufacturer's Model Name
414    0028|0101 "16"                         # Bits Stored
415    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
416    0028|0010 "64"                         # Rows
417    0028|0011 "64"                         # Columns
418    0028|0100 "16"                         # Bits Allocated
419    0028|0102 "15"                         # High Bit
420    0028|0103 "0"                          # Pixel Representation
421    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
422    0008|0060 "NM"                         # Modality
423    0028|0008 "13"                         # Number of Frames
424    # Note: 64 * 64 * 13 *   = 106496 i.e.
425    #       Rows * Columns * Number_of_Frames * Bits_Stored / 8 = number_of_bytes
426    7fe0|0010 "gdcm::NotLoaded Address:1234 Length:106496 x(1a000)"
427 ]
428
429 [ US-MONO2-8-8x-execho.dcm
430    # - Particularities:
431    #   * Multiframe image (see Number of Frames tag)
432    #   * Note the extra space for the Number of Frames tag: this is because
433    #     the value representation of this tag "IS"...
434    0008|0070 "Acme Products "             # Manufacturer
435    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
436    0028|0101 "8"                          # Bits Stored
437    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
438    0028|0010 "120"                        # Rows
439    0028|0011 "128"                        # Columns
440    0028|0100 "8"                          # Bits Allocated
441    0028|0102 "7"                          # High Bit
442    0028|0103 "0"                          # Pixel Representation
443    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
444    0008|0060 "US"                         # Modality
445    0028|0008 "8 "                         # Number of Frames
446    # Note: 120 * 128 * 8 * 1 = 122880 i.e.
447    #       Rows * Columns * Number_of_Frames * Bits_Stored / 8 = number_of_bytes
448    7fe0|0010 "gdcm::NotLoaded Address:976 Length:122880 x(1e000)"
449 ]
450
451 [ US-PAL-8-10x-echo.dcm
452    # - Particularities:
453    #   * Has a color palette (see "Photometric Interpretation" tag)
454    #   * compressed as RLE Lossless (Run Length Encoded) (see Transfer Syntax)
455    #   * Multiframe image (see Number of Frames tag)
456    0008|0070 "ACME Products "             # Manufacturer
457    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
458    0028|0101 "8"                          # Bits Stored
459    0028|0004 "PALETTE COLOR "             # Photometric Interpretation
460    0028|0010 "430"                        # Rows
461    0028|0011 "600"                        # Columns
462    0028|0100 "8"                          # Bits Allocated
463    0028|0102 "7"                          # High Bit
464    0028|0103 "0"                          # Pixel Representation
465    0002|0010 "1.2.840.10008.1.2.5"        # Transfer Syntax: RLE Lossless
466    0008|0060 "US"                         # Modality
467    0028|0008 "10"                         # Number of Frames
468    0028|0002 "1"                          # Samples per Pixel
469    0028|0006 "gdcm::Unfound"              # Planar Configuration
470    # Note: 430 * 600 * 8 != 481182 because of compression !
471    7fe0|0010 "gdcm::NotLoaded Address:2428 Length:481182 x(7579e)"
472 ]
473
474 [ XA-MONO2-8-12x-catheter.dcm
475    # - Particularities:
476    #   * jpeg compression [Lossless, hierar., first-order prediction
477    #     (Process 14, Selection Value 1) ]
478    #   * Multiframe image (see Number of Frames tag)
479    #   * XA Modality
480    0008|0070 "Acme Products "             # Manufacturer
481    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
482    0028|0101 "8"                          # Bits Stored
483    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
484    0028|0010 "512"                        # Rows
485    0028|0011 "512"                        # Columns
486    0028|0100 "8"                          # Bits Allocated
487    0028|0102 "7"                          # High Bit
488    0028|0103 "0"                          # Pixel Representation
489    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
490                                           # ... Process 14 [Selection Value 1]
491    0008|0060 "XA"                         # Modality
492    0028|0008 "12"                         # Number of Frames
493    # Note: 512 * 512 * 12 != 920072 because of compression !
494    7fe0|0010 "gdcm::NotLoaded Address:1006 Length:920072 x(e0a08)"
495 ]
496
497 [ PHILIPS_Integris_V-10-MONO2-Multiframe.dcm
498    # - Particularities:
499    #   * Multiframe image (see Number of Frames tag)
500    #   * the private tags are NOT in Explicit VR
501    #   * allmost groups (this is not the case of group 0x0008) contain
502    #     a "Group Length" tag (*, 0x0000)
503    #   * Pixel data encoded on 10 bits.
504    #   * Implicit VR --> all private entries are assumed as BinEntries
505    #                    (group 0019, group 0029)
506    #   * contains a "Modality LUT Sequence" at tag 0028|3000
507    0008|0070 "Philips Medical Systems (Netherlands) "    # Manufacturer
508    0008|1090 "P H I L I P S     INTEGRIS V" # Manufacturer's Model Name
509    0028|0101 "10"                         # Bits Stored
510    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
511    0028|0010 "1024"                       # Rows
512    0028|0011 "1024"                       # Columns
513    0028|0100 "16"                         # Bits Allocated
514    0028|0102 "9"                          # High Bit
515    0028|0103 "0"                          # Pixel Representation
516    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
517    0008|0060 "XA"                         # Modality
518    0028|0008 "31"                         # Number of Frames
519    # Note: 1024 * 1024 * 31 * 2 = 65011712 i.e.
520    #       Rows * Columns * Number_of_Frames * Bits_Allocated / 8 yields
521    #       the total number of bytes.
522   7fe0|0010 "gdcm::NotLoaded Address:4114 Length:65011712 x(3e00000)"
523 ]
524
525 [ GE_DLX-8-MONO2-Multiframe.dcm
526    # - Particularities:
527    #   * Multiframe image (see Number of Frames tag)
528    #   * the private tags are NOT in Explicit VR
529    #     --> assumed as BinEntries
530    #     ( groups 11, 15, 19)
531    #   * allmost groups (this is not the case of group 0x0008) contain
532    #     a "Group Length" tag (*, 0x0000)
533    #   * contains a "Mask Subtraction Sequence" at tag 0028|6100
534    #   * contains a "Device Sequence" at tag 0050|0010
535    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
536    0008|1090 "DLX "                       # Manufacturer's Model Name
537    0028|0101 "8"                          # Bits Stored
538    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
539    0028|0010 "512"                        # Rows
540    0028|0011 "512"                        # Columns
541    0028|0100 "8"                          # Bits Allocated
542    0028|0102 "7"                          # High Bit
543    0028|0103 "0"                          # Pixel Representation
544    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
545    0008|0060 "XA"                         # Modality
546    0028|0008 "56"                         # Number of Frames
547    # Note: 512 * 512 * 56 = 14680064 i.e.
548    #       Rows * Columns * Number_of_Frames = Total_number_of_bytes.
549    7fe0|0010 "gdcm::NotLoaded Address:4984 Length:14680064 x(e00000)"
550 ]
551
552 [ GE_DLX-8-MONO2-Multiframe-Jpeg_Lossless.dcm
553    # - Particularities:
554    #   * Multiframe image (see Number of Frames tag)
555    #   * contains a "Mask Subtraction Sequence" at tag 0028|6100
556    #   * contains a "Device Sequence" at tag 0050|0010
557    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
558    0008|1090 "DLX "                       # Manufacturer's Model Name
559    0028|0101 "8"                          # Bits Stored
560    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
561    0028|0010 "512"                        # Rows
562    0028|0011 "512"                        # Columns
563    0028|0100 "8"                          # Bits Allocated
564    0028|0102 "7"                          # High Bit
565    0028|0103 "0"                          # Pixel Representation
566    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
567                                           # ... Process 14 [Selection Value 1]
568    0008|0060 "XA"                         # Modality
569    0028|0008 "67"                         # Number of Frames
570    # 7fe0|0010 not present
571 ]
572
573 [ ACUSON-24-YBR_FULL_422-Jpeg_Baseline_1.dcm
574    # - Particularities:
575    #   * Jpeg Baseline (Process 1) encoding.
576    #   * YBR_FULL_422 encoding and hence "Samples per Pixel" tag is 3 
577    #     (see "Photometric Interpretation" entry).
578    #   * has a "Sequence of Ultrasound Regions " at tag (0x0018, 0x6011).
579    #   * WITHIN this sequence [at tag (0x0018, 0x6011)] we encounter
580    #     tags [e.g. (0x0018, 0x602c) ] with "FD" as value representation
581    #     that are "non printable" when interpreted as characters. "Non
582    #     printable" stands for "contains control characters that corrupts
583    #     a majority of UN*X shells"...
584    #   * Multiframe image with 40 fragments : see Number of Frames tag.
585    0008|0070 "ACUSON"                     # Manufacturer
586    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
587    0028|0101 "8"                          # Bits Stored
588    0028|0004 "YBR_FULL_422"               # Photometric Interpretation
589    0028|0010 "576"                        # Rows
590    0028|0011 "768"                        # Columns
591    0028|0100 "8"                          # Bits Allocated
592    0028|0102 "7"                          # High Bit
593    0028|0103 "0"                          # Pixel Representation
594    0002|0010 "1.2.840.10008.1.2.4.50"     # Transfer Syntax: JPEG Baseline
595                                           #                  (Process 1)
596    0008|0060 "US"                         # Modality
597    0028|0002 "3"                          # Samples per Pixel
598    0028|0008 "40"                         # Number of Frames
599    7fe0|0010 "gdcm::NotLoaded Address:1872 Length:3291746 x(323a62)"
600 ]
601
602 [ PHILIPS_Integris_H-8-MONO2-Multiframe.dcm
603    # - Particularities:
604    #   * Multiframe image (see Number of Frames tag)
605    #   * contains a "Referenced Performed Procedure Step Sequence" at
606    #     tag 0008|1111
607    #   * contains a sequence of unknow type at tag 0029|fd00.
608    #   * has some trailing (after the pixel data) info with tag fffc|fffc,
609    #     VR of "OB", length = 1570 = 0x622
610    0008|0070 "Philips Medical Systems (Netherlands) "    # Manufacturer
611    0008|1090 "P H I L I P S     INTEGRIS H" # Manufacturer's Model Name
612    0028|0101 "8"                          # Bits Stored
613    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
614    0028|0010 "512"                        # Rows
615    0028|0011 "512"                        # Columns
616    0028|0100 "8"                          # Bits Allocated
617    0028|0102 "7"                          # High Bit
618    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
619                                           # ... Process 14 [Selection Value 1]
620    0008|0060 "XA"                         # Modality
621    0028|0008 "76"                         # Number of Frames
622   7fe0|0010 "gdcm::NotLoaded Address:5690 Length:14349208 x(daf398)"
623 ]
624
625 [ ACUSON-24-YBR_FULL-RLE-b.dcm
626    # - Particularities:
627    #   * RLE Lossless encoding.
628    #   * YBR_FULL encoding and hence "Samples per Pixel" tag is 3 
629    #     (see "Photometric Interpretation" entry).
630    #   * contains a "Source Image Sequence" at tag 0008|2112
631    0008|0070 "ACUSON"                     # Manufacturer
632    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
633    0028|0101 "8"                          # Bits Stored
634    0028|0004 "YBR_FULL"                   # Photometric Interpretation
635    0028|0010 "288"                        # Rows
636    0028|0011 "384"                        # Columns
637    0028|0100 "8"                          # Bits Allocated
638    0028|0102 "7"                          # High Bit
639    0028|0103 "0"                          # Pixel Representation
640    0002|0010 "1.2.840.10008.1.2.5"        # Transfer Syntax: RLE Lossless
641    0008|0060 "US"                         # Modality
642    0028|0002 "3"                          # Samples per Pixel
643    7fe0|0010 "gdcm::NotLoaded Address:2032 Length:80822 x(13bb6)"
644 ]
645
646 ############################################################
647 ### ACR NEMA version 1.0 (ONE!) format:
648 ############################################################
649 [ SIEMENS_GBS_III-16-ACR_NEMA_1.acr
650    # - Particularities:
651    #   * old (circa 1991) ACR NEMA version 1.0 format.
652    #   * apparently broken pixel data (see below)
653    #   * Pixel Representation (0028|0103) is absent
654    #   * wierd padding of "Manufacturer's Model Name" tag
655    #   * Group 20 does NOT contain:
656    #      - "Study"
657    #      - "Serie Instance UID"
658    #     Within this group, the following entries are empty:
659    #      - "Study"
660    #      - "Series Number"
661    #
662    # - This image pixel data looks corrupted, in the sense that the
663    #   following sizes do NOT match (as expected):
664    #   * it's pixel data is 132096 bytes long
665    #   * it has a size of 256x256 with 16 bytes per pixel, i.e. a size
666    #     of 256*256*2 = 131072 bytes.
667    # - Because of this missmatch, TestReadWriteReadCompare segfaults
668    #   on this image.
669    #   In details, when segfault occurs we have the following call stack:
670    #       gdcmFile::GetImageData()
671    #          PixelData = new uint8_t[ImageDataSize];
672    #          \--->::GetImageDataIntoVector(destination, ImageDataSize)
673    #           \---> ::ReadPixelData(destination)
674    #            \---> fread(destination, Header->GetPixelAreaLength(), 1, fp);
675    #   which causes the segfault because :
676    #       - destination is ImageDataSize i.e. 131072 bytes long
677    #       - Header->GetPixelAreaLength() = 132096 bytes long
678    0008|0070 "SIEMENS "                   # Manufacturer
679    0008|1090 "GBS III     "               # Manufacturer's Model Name
680    0028|0101 "12"                         # Bits Stored
681    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
682    0028|0010 "256"                        # Rows
683    0028|0011 "256"                        # Columns
684    0028|0100 "16"                         # Bits Allocated
685    0028|0102 "11"                         # High Bit
686    0028|0103 "0"                          # Pixel Representation
687    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
688    0008|0060 "MR"                         # Modality
689    7fe0|0010 "gdcm::NotLoaded Address:8192 Length:132096 x(20400)"
690 ]
691
692 [ gdcm-MR-SIEMENS-16-1.acr
693    # - Particularities:
694    #   * old (circa 1991) ACR NEMA version 1.0 format.
695    #   * the image pixel data looks corrupted (see below)
696    #   * wierd padding of "Manufacturer's Model Name" tag
697    #   * "Photometric Interpretation" tag is absent
698    #   * Group 20 does NOT contain:
699    #      - "Study"
700    #      - "Serie Instance UID"
701    0008|0070 "SIEMENS "                   # Manufacturer
702    0008|1090 "GBS III     "               # Manufacturer's Model Name
703    0028|0101 "12"                         # Bits Stored
704    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
705    0028|0010 "256"                        # Rows
706    0028|0011 "256"                        # Columns
707    0028|0100 "16"                         # Bits Allocated
708    0028|0102 "11"                         # High Bit
709    0028|0103 "0"                          # Pixel Representation
710    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
711    0008|0060 "MR"                         # Modality
712    # Note: the image pixel data looks corrupted in the sense that the
713    #       following sizes do NOT match (as expected):
714    #       - it's pixel data is 132096 bytes long
715    #       - it has a size of 256x256 with 16 bytes per pixel, i.e. a size
716    #         of 256*256*2 = 131072 bytes.
717    7fe0|0010 "gdcm::NotLoaded Address:8192 Length:132096 x(20400)"
718 ]
719
720 ############################################################
721 ### ACR NEMA version 2.0 (TWO!) format:
722 ############################################################
723 [ gdcm-MR-SIEMENS-16-2.acr
724    # - Particularities:
725    #   * old (circa 2000) ACR NEMA version 2.0 format.
726    #   * wierd padding of "Series Number" tag
727    #  (ALL the -numerous- private fields are considered as 'BinEntries'
728    #        very few of them actually are :-(
729    #        groups 9, 11, 19, 21, 29, 51
730    # --> TODO : find a trick to guess (contains non printable characters ?)
731    0008|0070 "SIEMENS "                   # Manufacturer
732    0008|1090 "MAGNETOM VISION "           # Manufacturer's Model Name
733    0028|0101 "12"                         # Bits Stored
734    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
735    0028|0010 "512"                        # Rows
736    0028|0011 "512"                        # Columns
737    0028|0100 "16"                         # Bits Allocated
738    0028|0102 "11"                         # High Bit
739    0028|0103 "0"                          # Pixel Representation
740    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
741    0008|0010 "ACR-NEMA 2.0"               # Recognition Code (RET)
742    0008|0060 "MR"                         # Modality
743    0020|0011 "     7"                     # Series Number
744    7fe0|0010 "gdcm::NotLoaded Address:6052 Length:524288 x(80000)"
745 ]
746
747 [ SIEMENS_MAGNETOM-12-ACR_NEMA_2-Modern.dcm
748    # - Particularities:
749    #   * "Modern" ACR NEMA version 2.0 format i.e. the 0x0020 group contains
750    #     "Study Instance UID", "Study ID", "Series Number" and
751    #     "Serie Instance UID"
752    0008|0070 "SIEMENS "                   # Manufacturer
753    0008|1090 "MAGNETOM VISION "           # Manufacturer's Model Name
754    0028|0101 "12"                         # Bits Stored
755    0028|0004 "gdcm::Unfound"              # Photometric Interpretation
756    0028|0010 "512"                        # Rows
757    0028|0011 "512"                        # Columns
758    0028|0100 "16"                         # Bits Allocated
759    0028|0102 "11"                         # High Bit
760    0028|0103 "0"                          # Pixel Representation
761    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
762    0008|0010 "ACR-NEMA 2.0"               # Recognition Code (RET)
763    0008|0060 "MR"                         # Modality
764    0020|000d "1.3.12.2.1107.5.2.4.7630.20000918174641000" # Study Instance UID
765    0020|000e "1.3.12.2.1107.5.2.4.7630.20000918175714000007 " # Series Instance
766                                                               #     UID
767    0020|0011 "     7"                     # Series Number
768    0020|0010 "     1"                     # Study ID
769    7fe0|0010 "gdcm::NotLoaded Address:6052 Length:524288 x(80000)"
770 ]
771
772 [ TOSHIBA_MRT150-16-MONO2-ACR_NEMA_2.dcm
773    # - Particularities:
774    #   * ACR NEMA version 2.0 (circa 1994) format allthough the
775    #     "Recognition Code" is absent.
776    #   * all the groups are missing their "Group Length" tag i.e. no
777    #     tag of the form (*, 0x0000) present.
778    0008|0070 "Toshiba "                   # Manufacturer
779    0008|1090 "MRT150"                     # Manufacturer's Model Name
780    0028|0101 "16"                         # Bits Stored
781    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
782    0028|0010 "512"                        # Rows
783    0028|0011 "512"                        # Columns
784    0028|0100 "16"                         # Bits Allocated
785    0028|0102 "15"                         # High Bit
786    0028|0103 "0"                          # Pixel Representation
787    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
788    0008|0010 "gdcm::Unfound"              # Recognition Code (RET)
789    0008|0060 "MR"                         # Modality
790    0020|0011 "7 "                         # Series Number
791    0020|0010 "Run264.6653 "               # Study ID
792    7fe0|0010 "gdcm::NotLoaded Address:1130 Length:524288 x(80000)"
793 ]
794
795 [ FUJI-10-MONO1-ACR_NEMA_2.dcm
796    # - Particularities:
797    #   * ACR NEMA version 2.0 (circa 1995) format allthough the
798    #     "Recognition Code" is absent.
799    #   * large 1670x2010 image
800    0008|0070 "FUJI PHOTO FILM CO. LTD."   # Manufacturer
801    0008|1090 "CR201 "                     # Manufacturer's Model Name
802    0028|0101 "10"                         # Bits Stored
803    0028|0004 "MONOCHROME1 "               # Photometric Interpretation
804    0028|0010 "2010"                       # Rows
805    0028|0011 "1670"                       # Columns
806    0028|0100 "16"                         # Bits Allocated
807    0028|0102 "9"                          # High Bit
808    0028|0103 "0"                          # Pixel Representation
809    0002|0010 "gdcm::Unfound"              # Transfer Syntax UID
810    0008|0010 "gdcm::Unfound"              # Recognition Code (RET)
811    0008|0060 "CR"                         # Modality
812    7fe0|0010 "gdcm::NotLoaded Address:862 Length:6713400 x(667038)"
813 ]
814
815 #############################################################################
816 ### Images with various oddities...
817 #############################################################################
818 [ gdcm-US-ALOKA-16.dcm
819    # - Particularities:
820    #   * possesses 3 LUTs (Segmented Palette Color): a Green (checked), a
821    #     Red and Blue. Note: segmented palette color not taken into account
822    #     by gdcm (FIXME).
823    #   * Both Red and Green componant of the Segmented palette color are
824    #     bigger than 256 * 256 = 65536. How can one interpret such 
825    #     a LUT ?
826    #   * announced as implicit VR, but really explicit VR !
827    #   * has a color palette (see Photometric Interpretation)
828    #   * neither e-film nor DicomWorks deals with the color segmented palette
829    #     color properly. Xmedcon breaks on this image.
830    #   * Note: on disk this image has a size of 873140 bytes. But 
831    #           one could expect that
832    #           Rows * Columns * #Palette * 16 bits/2 = 1843200 bytes
833    #           would be necessary. What is wrong ?
834    0008|0070 "ALOKA CO., LTD. "           # Manufacturer
835    0008|1090 "SSD-4000"                   # Manufacturer's Model Name
836    0028|0101 "16"                         # Bits Stored
837    0028|0004 "PALETTE COLOR "             # Photometric Interpretation
838    0028|0010 "480"                        # Rows
839    0028|0011 "640"                        # Columns
840    0028|0100 "16"                         # Bits Allocated
841    0028|0102 "15"                         # High Bit
842    0028|0103 "0"                          # Pixel Representation
843    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax (Implicit VR, LE)
844    0008|0060 "US"                         # Modality
845    # The Segmented Palette Color Lookup Table Data:
846    # Red
847    0028|1221 "gdcm::NotLoaded Address:1750 Length:87818 x(1570a)"
848    # Green
849    0028|1222 "gdcm::NotLoaded Address:89576 Length:113784 x(1bc78)"
850    # Blue
851    0028|1223 "gdcm::NotLoaded Address:203368 Length:55364 x(d844)"
852    #
853    7fe0|0010 "gdcm::NotLoaded Address:258740 Length:614400 x(96000)"
854 ]
855
856 [ gdcm-MR-PHILIPS-16-Multi-Seq.dcm
857    # - Particularities:
858    #   * dicom file, with a recognition code of ACR-NEMA1
859    #   * Highly nested sequence (6 sublevels) with an impressive size
860    #     of 28808 bytes at tag (0x0029, 0x263d)
861    #   * some sequences have 0 (zero) length
862    #   * possesses many sequences in group 0x0029
863    #   * Private BinEntry (DT) 21 1007
864    0008|0070 "Philips Medical Systems "   # Manufacturer
865    0008|1090 "Gyroscan Intera "           # Manufacturer's Model Name
866    0028|0101 "12"                         # Bits Stored
867    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
868    0028|0010 "128"                        # Rows
869    0028|0011 "128"                        # Columns
870    0028|0100 "16"                         # Bits Allocated
871    0028|0102 "11"                         # High Bit
872    0028|0103 "0"                          # Pixel Representation
873    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
874    0008|0060 "MR"                         # Modality
875    0008|0010 "ACR-NEMA 1.0"               # Recognition Code (RET)
876    7fe0|0010 "gdcm::NotLoaded Address:35846 Length:32768 x(8000)"
877 ]
878
879 [ gdcm-CR-DCMTK-16-NonSamplePerPix.dcm
880    # - Particularities:
881    #   * probably generated with dcmtk (DICOM Toolkit, refer to
882    #     http://dicom.offis.de/dcmtk.php.en)
883    #   * Misses the "Samples Per Pixel" element which prevents
884    #     e-film from reading it.
885    #   * Misses both the "Manufacturer" and the "Manufacturer's Model Name"
886    0008|0070 "gdcm::Unfound"              # Manufacturer
887    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
888    0028|0101 "8"                          # Bits Stored
889    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
890    0028|0010 "750"                        # Rows
891    0028|0011 "750"                        # Columns
892    0028|0100 "8"                          # Bits Allocated
893    0028|0102 "7"                          # High Bit
894    0028|0103 "0"                          # Pixel Representation
895    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
896    0008|0060 "CR"                         # Modality
897    0002|0013 "OFFIS_DCMTK_341 "           # Implementation Version Name
898    0028|0002 "gdcm::Unfound"              # Samples per Pixel
899    7fe0|0010 "gdcm::NotLoaded Address:740 Length:562500 x(89544)"
900 ]
901
902 [ gdcm-MR-PHILIPS-16-NonRectPix.dcm
903    # - Particularities:
904    #   * Non rectangular pixels (see "Pixel Spacing" tag)
905    #   * private tags are in explicit VR (which is normal BTW)
906    #   * has FD fields at tags 0029|218b, and 0029|218d
907    #   * many (roughly 20) sequences, among which:
908    #     - a couple ones with 0 (zero) length, e.g. at tags 0029|2008,
909    #       0029|201e, or 0029|204c/0#0029|28e0.
910    #     - nested sub-sequences.
911    #   * screen-flaher non printable characters in private elements (see
912    #     file ACUSON-24-YBR_FULL_422-Jpeg_Baseline_1.dcm).
913    0008|0070 "Philips Medical Systems "   # Manufacturer
914    0008|1090 "Gyroscan Intera "           # Manufacturer's Model Name
915    0028|0101 "12"                         # Bits Stored
916    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
917    0028|0010 "64"                         # Rows
918    0028|0011 "160"                        # Columns
919    0028|0100 "16"                         # Bits Allocated
920    0028|0102 "11"                         # High Bit
921    0028|0103 "0"                          # Pixel Representation
922    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
923    0008|0060 "MR"                         # Modality
924    0028|0030 " 0.487416\0.194966"         # Pixel Spacing
925    7fe0|0010 "gdcm::NotLoaded Address:5010 Length:20480 x(5000)"
926 ]
927
928 [ SIEMENS_Sonata-16-MONO2-Value_Multiplicity.dcm
929    # - Particularities:
930    #   * contains a tag with value multiplicity bigger than 1: the
931    #     tag (0x0018, 0x1310) has "US" as value representation BUT
932    #     has a size of 8 bytes (i.e. it contains FOUR short integers)
933    #   * contains a "Referenced Image Sequence" at tag 0008|1140
934    0008|0070 "SIEMENS "                   # Manufacturer
935    0008|1090 "Sonata"                     # Manufacturer's Model Name
936    0028|0101 "12"                         # Bits Stored
937    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
938    0028|0010 "208"                        # Rows
939    0028|0011 "256"                        # Columns
940    0028|0100 "16"                         # Bits Allocated
941    0028|0102 "11"                         # High Bit
942    0028|0103 "0"                          # Pixel Representation
943    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
944    0008|0060 "MR"                         # Modality
945    0018|1310 "256\0\0\166"                # Acquisition Matrix
946    7fe0|0010 "gdcm::NotLoaded Address:25686 Length:106496 x(1a000)"
947 ]
948
949 [ SIEMENS_MAGNETOM-12-MONO2-Uncompressed.dcm
950    # - Particularities:
951    #   * transited by a Siemens LEONARDO console, which produced a
952    #      buggy headered images
953    # JPR FIX: can you confirm that, and tell in which way the header is
954    #          got corrupted ?
955    0008|0070 "SIEMENS "                   # Manufacturer
956    0008|1090 "MAGNETOM VISION "           # Manufacturer's Model Name
957    0028|0101 "12"                         # Bits Stored
958    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
959    0028|0010 "512"                        # Rows
960    0028|0011 "512"                        # Columns
961    0028|0100 "16"                         # Bits Allocated
962    0028|0102 "11"                         # High Bit
963    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR,
964                                           #                  Little Endian
965    0008|0060 "MR"                         # Modality
966    7fe0|0010 "gdcm::NotLoaded Address:5160 Length:524288 x(80000)"
967 ]
968
969 [ PICKER-16-MONO2-No_DicomV3_Preamble.dcm
970    # - Particularities:
971    #   * looks like a DICOM V3 image but it misses the proper file
972    #     file preamble (of 200 bytes).
973    0008|0070 "Picker International, Inc." # Manufacturer
974    0008|1090 "HF1006"                     # Manufacturer's Model Name
975    0028|0101 "16"                         # Bits Stored
976    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
977    0028|0010 "512"                        # Rows
978    0028|0011 "512"                        # Columns
979    0028|0100 "16"                         # Bits Allocated
980    0028|0102 "15"                         # High Bit
981    0028|0103 "1"                          # Pixel Representation
982    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
983    0008|0060 "MR"                         # Modality
984    7fe0|0010 "gdcm::NotLoaded Address:1406 Length:524288 x(80000)"
985 ]
986
987 [ PHILIPS_Gyroscan-8-MONO2-Odd_Sequence.dcm
988    # - Particularities:
989    #   * Contains a "Referenced Image Sequence" at tag 0008|1140.
990    0008|0070 "Philips Medical Systems "   # Manufacturer
991    0008|1090 "Gyroscan Intera "           # Manufacturer's Model Name
992    0028|0101 "8"                          # Bits Stored
993    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
994    0028|0010 "256"                        # Rows
995    0028|0011 "256"                        # Columns
996    0028|0100 "16"                         # Bits Allocated
997    0028|0102 "7"                          # High Bit
998    0028|0103 "0"                          # Pixel Representation
999    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
1000    0008|0060 "MR"                         # Modality
1001    7fe0|0010 "gdcm::NotLoaded Address:6584 Length:131072 x(20000)"
1002 ]
1003
1004 [ PICKER-16-MONO2-Nested_icon.dcm
1005    # - Particularities:
1006    #   * contains TWO images:
1007    #     - the original image 512x512 at tag 7fe0|0010,
1008    #     - an 8x8 icon hidden in a "Icon Image Sequence" (at tag 0088|0200)
1009    #       within Item number 0, and within the usual tag 7fe0|0010
1010    #       (the full tag of this icon is hence 0088|0200/0#7fe0|0010)
1011    #     This implies this image contains two 7fe0|0010 (among which one is
1012    #     burried in a sequence), two "Rows" entries, two "Columns" entries...
1013    #     This makes it impossible to use the name of tag (e.g. Rows) as
1014    #     as a key of dictionaries build on top of such an image....
1015    #   * contains a "Source Image Sequence" with 0xffff length at 0008|2112
1016    #     with 130 useless (dummy) items,
1017    #   * sequence at 0088|0200, with length 0xffff, is terminated with both:
1018    #     - an "Item Delimitation Item" (i.e. a tag fffe|e00d)
1019    #     - a "Sequence Delimitation Item" (i.e. a tag fffe|e0dd).
1020    0008|0070 "PICKER"                     # Manufacturer
1021    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
1022    0028|0101 "12"                         # Bits Stored
1023    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1024    0028|0010 "512"                        # Rows
1025    0028|0011 "512"                        # Columns
1026    0028|0100 "16"                         # Bits Allocated
1027    0028|0102 "11"                         # High Bit
1028    0028|0103 "0"                          # Pixel Representation
1029    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
1030    0008|0060 "CT"                         # Modality
1031    7fe0|0010 "gdcm::NotLoaded Address:18228 Length:524288 x(80000)"
1032 ]
1033
1034 [ KODAK-12-MONO1-Odd_Terminated_Sequence.dcm
1035    # - Particularities:
1036    #   * within the "Modality LUT Sequence" at tag 0028|3000 we encounter
1037    #     an "Item Delimitation" fffe|e00d followed by a
1038    #     "Sequence Delimitation Item" fffe|e0dd just after the tag 0028|3006
1039    #   * looks like an ACR-NEMA V2 [allthough no "Recognition Code"
1040    #     (0x0008, 0x0010) is present].
1041    0008|0070 "Kodak "                     # Manufacturer
1042    0008|1090 "gdcm::Unfound"              # Manufacturer's Model Name
1043    0028|0101 "12"                         # Bits Stored
1044    0028|0004 "MONOCHROME1 "               # Photometric Interpretation
1045    0028|0010 "2392"                       # Rows
1046    0028|0011 "1792"                       # Columns
1047    0028|0100 "16"                         # Bits Allocated
1048    0028|0102 "11"                         # High Bit
1049    0028|0103 "0"                          # Pixel Representation
1050    0002|0010 "gdcm::Unfound"              # Transfer Syntax: Implicit VR, LE
1051    0008|0060 "CR"                         # Modality
1052    7fe0|0010 "gdcm::NotLoaded Address:9134 Length:8572928 x(82d000)"
1053 ]
1054
1055 [ SIEMENS_SOMATOM-12-ACR_NEMA-ZeroLengthUs.acr
1056    # - Particularities:
1057    #   * Has a 'Zero length' integer field at tag 0020|5000 with VR "US"
1058    #        [US][Original Image Identification (RET)]
1059    #   * Has a lot of private fields, with no VR, see groups 9, 11, 19, 21,
1060    #     29, 31
1061    0008|0070 "SIEMENS "                   # Manufacturer
1062    0008|1090 "SOMATOM PLUS 4            " # Manufacturer's Model Name
1063    0028|0101 "12"                         # Bits Stored
1064    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1065    0028|0010 "512"                        # Rows
1066    0028|0011 "512"                        # Columns
1067    0028|0100 "16"                         # Bits Allocated
1068    0028|0102 "11"                         # High Bit
1069    0028|0103 "0"                          # Pixel Representation
1070    0008|0060 "CT"                         # Modality
1071    0009|0010 "gdcm::Binary data loaded"   # Unknown
1072    7fe0|0010 "gdcm::NotLoaded Address:5064 Length:524288 x(80000)"
1073 ]
1074
1075 [ ACUSON-8-YBR_FULL-JPEG-TrailingInfo.dcm
1076    # - Particularities:
1077    #   * has some trailing (after the pixel data) info with tag fffc|fffc,
1078    #     VR of "OB", length = 1722 = 0x6ba
1079    #   * contains a "Sequence of Ultrasound Regions" at tag 0018|6011
1080    0008|0070 "ACUSON"                     # Manufacturer
1081    0028|0101 "8"                          # Bits Stored
1082    0028|0004 "YBR_FULL_422"               # Photometric Interpretation
1083    0028|0010 "576"                        # Rows
1084    0028|0011 "768"                        # Columns
1085    0028|0100 "8"                          # Bits Allocated
1086    0028|0102 "7"                          # High Bit
1087    0028|0103 "0"                          # Pixel Representation
1088    0002|0010 "1.2.840.10008.1.2.4.50"     # Transfer Syntax: jpeg baseline
1089                                           #                  process (1)
1090    0008|0060 "US"                         # Modality
1091    7fe0|0010 "gdcm::NotLoaded Address:2288 Length:1513128 x(1716a8)"
1092    fffc|fffc "gdcm::Binary data loaded"    # Trailing info !
1093 ]
1094
1095 [ GE_GENESIS-16-MONO2-WrongLengthItem.dcm
1096    # - Particularities:
1097    #   * Sample of well known GE buggy header: wrong length for some items
1098    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
1099    0008|1090 "GENESIS_SIGNA "             # Manufacturer's Model Name
1100    0028|0101 "16"                         # Bits Stored
1101    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1102    0028|0010 "256"                        # Rows
1103    0028|0011 "256"                        # Columns
1104    0028|0100 "16"                         # Bits Allocated
1105    0028|0102 "15"                         # High Bit
1106    0028|0103 "1"                          # Pixel Representation
1107    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR, LE
1108    0008|0060 "MR"                         # Modality
1109    7fe0|0010 "gdcm::NotLoaded Address:1930 Length:131072 x(20000)"
1110 ]
1111
1112 [ MARCONI_MxTWin-12-MONO2-JpegLossless-ZeroLengthSQ.dcm
1113    # - Particularities:
1114    #   * jpeg compression (Process 14 [Selection Value 1])
1115    #   * "Icon Image Sequence" at tag 0088|0200 has 0 (zero) length
1116    0008|0070 "Marconi "                   # Manufacturer
1117    0008|1090 "MxTwin"                     # Manufacturer's Model Name
1118    0028|0101 "12"                         # Bits Stored
1119    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1120    0028|0010 "512"                        # Rows
1121    0028|0011 "512"                        # Columns
1122    0028|0100 "16"                         # Bits Allocated
1123    0028|0102 "11"                         # High Bit
1124    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1125                                           # ... Process 14 [Selection Value 1]
1126    0008|0060 "CT"                         # Modality
1127    7fe0|0010 "gdcm::NotLoaded Address:1916 Length:116517 x(1c725)"
1128 ]
1129
1130 [ THERALYS-12-MONO2-Uncompressed-Even_Length_Tag.dcm
1131    # - Particularities:
1132    #   * both tag 0008|0070 ("Manufacturer") and tag 0008|0080
1133    #     "Institution Name" have an even length of 13 bytes.
1134    #   * contains a "Referenced Image Sequence" of 0 (zero) length at
1135    #     tag 0008|1140
1136    0008|0070 "Theralys S.A."              # Manufacturer
1137    0008|1090 "vtkToDicomWriter"           # Manufacturer's Model Name
1138    0028|0101 "12"                         # Bits Stored
1139    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1140    0028|0010 "256"                        # Rows
1141    0028|0011 "256"                        # Columns
1142    0028|0100 "16"                         # Bits Allocated
1143    0028|0102 "11"                         # High Bit
1144    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR,
1145                                           #                  Little Endian
1146    0008|0060 "MR"                         # Modality
1147    7fe0|0010 "gdcm::NotLoaded Address:1839 Length:131072 x(20000)"
1148 ]
1149
1150 [ THERALYS-12-MONO2-Uncompressed-E_Film_Template.dcm
1151    # - Particularities:
1152    #   * empty image usable as a template to produce efilm readable images
1153    #     with the strictly minimum tag set.
1154    #   * Given by Theralys
1155    0028|0101 "12"                         # Bits Stored
1156    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1157    0028|0010 "256"                        # Rows
1158    0028|0011 "256"                        # Columns
1159    0028|0100 "16"                         # Bits Allocated
1160    0028|0102 "11"                         # High Bit
1161    0002|0010 "1.2.840.10008.1.2"          # Transfer Syntax: Implicit VR,
1162                                           #                  Little Endian
1163    7fe0|0010 "gdcm::NotLoaded Address:1250 Length:131072 x(20000)"
1164 ]
1165
1166 [ GE_GENESIS-16-MONO2-Uncompressed-UnusualVR.dcm
1167    # - Particularities:
1168    #   * Many private entries have (perfectly "legal") unusual Value
1169    #     Representation (that gdcm interprets a gdcmBinEntries).
1170    #     - VR = FL : 0019|105a, 0027|1041...0027|1049, 0027|104a...0027|104d,
1171    #                 0027|1060 ... 0027|1062, 0043|1033, 0043|1038
1172    #     - VR = DT : 0019|109d
1173    #     - VR = FD : 0023|1070
1174    #     - VR = OB : 0043|1028, 0043|1029, 0043|102a
1175    0008|0070 "GE MEDICAL SYSTEMS"         # Manufacturer
1176    0008|1090 "GENESIS_SIGNA "             # Manufacturer's Model Name
1177    0028|0101 "16"                         # Bits Stored
1178    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1179    0028|0010 "256"                        # Rows
1180    0028|0011 "256"                        # Columns
1181    0028|0100 "16"                         # Bits Allocated
1182    0028|0102 "15"                         # High Bit
1183    0028|0103 "1"                          # Pixel Representation
1184    0002|0010 "1.2.840.10008.1.2.1 "       # Transfer Syntax: Explicit VR, LE
1185    0008|0060 "MR"                         # Modality
1186    7fe0|0010 "gdcm::NotLoaded Address:9666 Length:131072 x(20000)"
1187 ]
1188
1189 ############################################################
1190 ### Sequence related images.
1191 ############################################################
1192 [ SIEMENS_Sonata-12-MONO2-SQ.dcm
1193    # - Particularities:
1194    #   * contains a "Referenced Performed Procedure Step Sequence" at
1195    #     tag 0008|1111,
1196    #   * contains a "Referenced Image Sequence" at tag 0008|1140
1197    #     has a size of 8 bytes (i.e. it contains FOUR short integers)
1198    0008|0070 "SIEMENS "                   # Manufacturer
1199    0008|1090 "Sonata"                     # Manufacturer's Model Name
1200    0028|0101 "12"                         # Bits Stored
1201    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1202    0028|0010 "192"                        # Rows
1203    0028|0011 "192"                        # Columns
1204    0028|0100 "16"                         # Bits Allocated
1205    0028|0102 "11"                         # High Bit
1206    0028|0103 "0"                          # Pixel Representation
1207    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR, LE
1208    0008|0060 "MR"                         # Modality
1209    7fe0|0010 "gdcm::NotLoaded Address:51804 Length:73728 x(12000)"
1210 ]
1211
1212 [ ALOKA_SSD-8-MONO2-RLE-SQ.dcm
1213    # - Particularities:
1214    #   * contains a "Sequence of Ultrasound Regions " at tag 0018|6011
1215    0008|0070 "ALOKA CO., LTD. "           # Manufacturer
1216    0008|1090 "SSD-5000"                   # Manufacturer's Model Name
1217    0028|0101 "8"                          # Bits Stored
1218    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1219    0028|0010 "420"                        # Rows
1220    0028|0011 "608"                        # Columns
1221    0028|0100 "8"                          # Bits Allocated
1222    0028|0102 "7"                          # High Bit
1223    0002|0010 "1.2.840.10008.1.2.5"        # RLE Lossless
1224    0008|0060 "US"                         # Modality
1225    7fe0|0010 "gdcm::NotLoaded Address:1398 Length:128088 x(1f458)"
1226 ]
1227
1228 ############################################################
1229 ### Jpeg compressed images.
1230 ############################################################
1231 [ gdcm-JPEG-Extended.dcm
1232    # - Particularities:
1233    #   * contains a "Referenced Image Sequence" of length 0xffff at
1234    #     tag 0008|1140,
1235    #   * contains a "Source Image Sequence" of length 0xffff at
1236    #     tag 0008|2112,
1237    #   * jpeg compression [Extended Process (2,4)]
1238    #   * probably contains additional data after the pixels (see comments
1239    #     of the gdcm-JPEG-LossLess3a.dcm entry)
1240    #   * contains OB private fields at tags 0019|10b0, 0021|1011, 0029|1008,
1241    #     0029|1009, 0029|1010, 0029|1131, 0029|1134.
1242    0008|0070 "SIEMENS "                   # Manufacturer
1243    0008|1090 "Volume Zoom "               # Manufacturer's Model Name
1244    0028|0101 "12"                         # Bits Stored
1245    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1246    0028|0010 "512"                        # Rows
1247    0028|0011 "512"                        # Columns
1248    0028|0100 "16"                         # Bits Allocated
1249    0028|0102 "11"                         # High Bit
1250    0028|0103 "0"                          # Pixel Representation
1251    0002|0010 "1.2.840.10008.1.2.4.51"     # Transfer Syntax: jpeg extended
1252                                           #                  process (2,4)
1253    0008|0060 "CT"                         # Modality
1254    7fe0|0010 "gdcm::NotLoaded Address:2946 Length:192218 x(2eeda)"
1255 ]
1256
1257 [ gdcm-JPEG-Extended-Allready_present.dcm
1258    # JPR FIXME: this image is REALLY close to gdcm-JPEG-Extended.dcm in
1259    #            terms of features (actually I suspect gdcm-JPEG-Extended.dcm
1260    #            is the anonymized version of this one)...
1261    # - Particularities:
1262    #   * jpeg compression [Extended Process (2,4)]
1263    #   * private BinEntry (OB) in 19 10b0, 21 1011, 29 1008, 29 1009, 29 1010,
1264    #                              29 1131, 29 1134
1265    0008|0070 "SIEMENS "                   # Manufacturer
1266    0008|1090 "Volume Zoom "               # Manufacturer's Model Name
1267    0028|0101 "12"                         # Bits Stored
1268    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1269    0028|0010 "512"                        # Rows
1270    0028|0011 "512"                        # Columns
1271    0028|0100 "16"                         # Bits Allocated
1272    0028|0102 "11"                         # High Bit
1273    0028|0103 "0"                          # Pixel Representation
1274    0002|0010 "1.2.840.10008.1.2.4.51"     # Transfer Syntax: jpeg extended
1275                                           #                  process (2,4)
1276    0008|0060 "CT"                         # Modality
1277    7fe0|0010 "gdcm::NotLoaded Address:2946 Length:192218 x(2eeda)"
1278 ]
1279
1280 [ SIEMENS-12-Jpeg_Process_2_4-Lossy-a.dcm
1281    # - Particularities:
1282    #   * jpeg compression [Extended Process (2,4)]
1283    0008|0070 "SIEMENS "                   # Manufacturer
1284    0008|1090 "Volume Zoom "               # Manufacturer's Model Name
1285    0028|0101 "12"                         # Bits Stored
1286    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1287    0028|0010 "512"                        # Rows
1288    0028|0011 "512"                        # Columns
1289    0028|0100 "16"                         # Bits Allocated
1290    0028|0102 "11"                         # High Bit
1291    0028|0103 "0"                          # Pixel Representation
1292    0002|0010 "1.2.840.10008.1.2.4.51"     # Transfer Syntax: jpeg extended
1293                                           #                  process (2,4)
1294    0008|0060 "CT"                         # Modality
1295    7fe0|0010 "gdcm::NotLoaded Address:3044 Length:66978 x(105a2)"
1296 ]
1297
1298 [ gdcm-JPEG-LossLess3a.dcm
1299    # - Particularities:
1300    #   * jpeg compression [Lossless, hierar., first-order prediction 
1301    #     (Process 14, Selection Value 1) ]
1302    #   * contains additional data after the pixels (see below)
1303    #   * contains a "Source Image Sequence" tag at 0008|2112
1304    0008|0070 "SIEMENS "                   # Manufacturer
1305    0008|1090 "Volume Zoom "               # Manufacturer's Model Name
1306    0028|0101 "12"                         # Bits Stored
1307    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1308    0028|0010 "512"                        # Rows
1309    0028|0011 "512"                        # Columns
1310    0028|0100 "16"                         # Bits Allocated
1311    0028|0102 "11"                         # High Bit
1312    0028|0103 "0"                          # Pixel Representation
1313    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1314                                           # ... Process 14 [Selection Value 1]
1315    0008|0060 "CT"                         # Modality
1316    # It looks like the pixel data are corrupted:
1317    # As stated by "od -A d -c"
1318    #   0002528     Ã  177 020 \0  O  B \0 \0   Ã¿  Ã¿   Ã¿   Ã¿ Ã¾  Ã¿ \0  Ã 
1319    #   0002544    \0  \0  \0 \0  Ã¾  Ã¿ \0  Ã  202  ? 003  \0  Ã¿  Ã˜  Ã¿  Ãƒ
1320    # which we interpret as follows:
1321    #   - 2528: (à 177, 020 \0) = (0x7fe0, 0x0010) i.e. Pixel Data tag,
1322    #   - 2532: OB i.e. encapsulated encoded Pixel Data,
1323    #   - 2534: Two bytes reserved,
1324    #   - 2536: Ã¿ Ã¿ Ã¿ Ã¿ = 0xffffffff i.e. data element length is undefined.
1325    #   - 2540: (þ Ã¿, \0 Ã ) = (0xfffe, 0xe000) i.e. basic offset table
1326    #           item tag
1327    #   - 2544: \0 \0 \0 \0 i.e. offset table as length zero, i.e. no
1328    #           item value for offset table.
1329    #   - 2548: (þ Ã¿, \0 Ã ) = (0xfffe, 0xe000) i.e. item tag of first
1330    #           fragment of (encoded) pixel data.
1331    #   - 2552: 202 ? 003 \0 = 212866 bytes i.e. length of first fragment
1332    #           of (encoded) pixel data.
1333    # and so the next item tag should be found at the 2556+212866 th
1334    # octet i.e. at address 215422. But, as stated by od, we find:
1335    #   0215408   E   u Ã– 026   ÃŽ   Ã‰ 7 Â¬ Ãƒ Â¸ Ã³ Â¿ Ã¿ Ã™ \f Â°
1336    #   0215424   Â¶ 016 P   Ã‘ 002 016
1337    # and (\f Â°, Â¶ 016) is NOT an OB item TAG which is required to be
1338    # present (at least there should be a sequence delimiter), refer to
1339    # PS 3.5-2001 page 50.
1340    #
1341    # As stated by JPR in hexa:
1342    # at 9ec : ItemTag : fffe,e000
1343    # at 9f0 : Basic Offset Table Item Lentgh (??) 0 x(00000000)
1344    # at 9f4 : ItemTag : fffe,e000
1345    #         at 9f8 : fragment length 212866 x(00033f82)
1346    # at 3497e : ItemTag  b00c,0eb6 (should be fffe,e000 or fffe,e0dd):
1347    7fe0|0010 "gdcm::NotLoaded Address:2540 Length:212890 x(33f9a)"
1348 ]
1349
1350 [ gdcm-JPEG-LossLessThoravision.dcm
1351    # - Particularities:
1352    #   * jpeg compression [Lossless, hierar., first-order prediction
1353    #     (Process 14, Selection Value 1) ]
1354    #   * encoding is sligthly different from the one of entry
1355    #     gdcm-JPEG-LossLess3a.dcm (to check).
1356    #   * Large picture: 2076 by 1876 (I wonder what screens they have...)
1357    #     -> Just underscale it !
1358    #   Breaks all the DICOM viewers
1359    0008|0070 "Philips Medical Systems "   # Manufacturer
1360    0008|1090 "Cassette Holder Type 9840 500 35201 " # Manufacturer's Model Name
1361    0028|0101 "15"                         # Bits Stored
1362    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1363    0028|0010 "2076"                       # Rows
1364    0028|0011 "1876"                       # Columns
1365    0028|0100 "16"                         # Bits Allocated
1366    0028|0102 "14"                         # High Bit
1367    0028|0103 "0"                          # Pixel Representation
1368    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1369                                           # ... Process 14 [Selection Value 1]
1370    0008|0060 "CR"                         # Modality
1371    7fe0|0010 "gdcm::NotLoaded Address:3144 Length:4795668 x(492d14)"
1372 ]
1373
1374 [ PHILIPS_Gyroscan-12-Jpeg_Extended_Process_2_4.dcm
1375    # - Particularities:
1376    #   * jpeg compression [Extended Process (2,4)]
1377    #   * Allthough it is a DICOM V3 image, the "Recognition Code" tag
1378    #     announces it as "ACR-NEMA 1.0" !
1379    0008|0070 "Philips Medical Systems "   # Manufacturer
1380    0008|1090 "Gyroscan Intera "           # Manufacturer's Model Name
1381    0028|0101 "12"                         # Bits Stored
1382    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1383    0028|0010 "512"                        # Rows
1384    0028|0011 "512"                        # Columns
1385    0028|0100 "16"                         # Bits Allocated
1386    0028|0102 "11"                         # High Bit
1387    0028|0103 "0"                          # Pixel Representation
1388    0002|0010 "1.2.840.10008.1.2.4.51"     # Transfer Syntax: jpeg extended
1389                                           #                  process (2,4)
1390    0008|0060 "MR"                         # Modality
1391    0008|0010 "ACR-NEMA 1.0"               # Recognition Code (RET)
1392    7fe0|0010 "gdcm::NotLoaded Address:5956 Length:46602 x(b60a)"
1393 ]
1394
1395 [ PHILIPS_Gyroscan-12-MONO2-Jpeg_Lossless.dcm
1396    # - Particularities:
1397    #   * jpeg lossless, Non-Hierarchical, First-Order Prediction,
1398    #     compression [Process 14 (Selection Value 1)]
1399    #   * many (roughly 8) sequences, among which:
1400    #     - one with 0 (zero) length at tag 0029|204c/0#0029|28e0
1401    #     - many with length 0xffff
1402    0008|0070 "Philips Medical Systems "   # Manufacturer
1403    0008|1090 "Gyroscan Intera "           # Manufacturer's Model Name
1404    0028|0101 "12"                         # Bits Stored
1405    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1406    0028|0010 "256"                        # Rows
1407    0028|0011 "256"                        # Columns
1408    0028|0100 "16"                         # Bits Allocated
1409    0028|0102 "11"                         # High Bit
1410    0028|0103 "0"                          # Pixel Representation
1411    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1412                                           # ... Process 14 [Selection Value 1]
1413    0008|0060 "MR"                         # Modality
1414    0008|0010 "ACR-NEMA 1.0"               # Recognition Code (RET)
1415    # 7fe0|0010 Not present.
1416 ]
1417
1418 ###########################################################################
1419 # All the following files come from the LeadTools site (see
1420 #      http://www.leadtools.com/SDK/Medical/DICOM/ltdc19.htm )
1421 # and (probably) serves as an illustration of many Dicom encoding/compression
1422 # modes. Those "hand made"  files were not produced by any acquisition engine
1423 # and hence are not from "real" life, but maybe one day some machine will
1424 # implement it. Some images, allthough using a perfectly "legal" Dicom format,
1425 # seem to be unique in their own encoding/compression category. Worth the
1426 # trial in a test suite!
1427 # All the following files share the same size (535x800), the same pixel
1428 # representation ("0") ;
1429 #  0028|0010 "535"                        # Rows
1430 #  0028|0011 "800"                        # Columns
1431 #  0028|0103 "0"                          # Pixel Representation
1432 # and hold the same picture: some flowers...
1433
1434 [ LEADTOOLS_FLOWERS-8-MONO2-JpegLossy.dcm
1435    # - Particularities:
1436    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1437    0028|0101 "8"                          # Bits Stored
1438    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1439    0028|0100 "8"                          # Bits Allocated
1440    0028|0102 "7"                          # High Bit
1441    0002|0010 "1.2.840.10008.1.2.4.50"     # Transfer Syntax: jpeg Baseline,
1442                                           # ... Process 1 
1443    # No "7fe0|0010"
1444 ]
1445
1446 [ LEADTOOLS_FLOWERS-8-PAL-RLE.dcm
1447    # - Particularities:
1448    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1449    0028|0101 "8"                          # Bits Stored
1450    0028|0004 "PALETTE COLOR "             # Photometric Interpretation
1451    0028|0100 "8"                          # Bits Allocated
1452    0028|0102 "7"                          # High Bit
1453    0028|0006 "2"                          # Planar Configuration
1454    0002|0010 "1.2.840.10008.1.2.5"        # Transfer Syntax: RLE Lossless
1455    # No "7fe0|0010"
1456 ]
1457
1458 [ LEADTOOLS_FLOWERS-8-MONO2-RLE.dcm
1459    # - Particularities:
1460    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1461    0028|0101 "8"                          # Bits Stored
1462    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1463    0028|0100 "8"                          # Bits Allocated
1464    0028|0102 "7"                          # High Bit
1465    0002|0010 "1.2.840.10008.1.2.5"        # Transfer Syntax: RLE Lossless
1466    # No "7fe0|0010"
1467 ]
1468
1469 [ LEADTOOLS_FLOWERS-8-PAL-Uncompressed.dcm
1470    # - Particularities:
1471    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1472    0028|0101 "8"                          # Bits Stored
1473    0028|0004 "PALETTE COLOR "             # Photometric Interpretation
1474    0028|0100 "8"                          # Bits Allocated
1475    0028|0102 "7"                          # High Bit
1476    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR -
1477                                           #                 Little Endian
1478    7fe0|0010 "gdcm::NotLoaded Address:3538 Length:428000 x(687e0)"
1479 ]
1480
1481 [ LEADTOOLS_FLOWERS-8-MONO2-Uncompressed.dcm
1482    # - Particularities:
1483    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1484    0028|0101 "8"                          # Bits Stored
1485    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1486    0028|0100 "8"                          # Bits Allocated
1487    0028|0102 "7"                          # High Bit
1488    0002|0010 "1.2.840.10008.1.2.1"        # Transfer Syntax: Explicit VR -
1489                                           #                 Little Endian
1490    7fe0|0010 "gdcm::NotLoaded Address:1942 Length:428000 x(687e0)"
1491 ]
1492
1493 [ LEADTOOLS_FLOWERS-16-MONO2-JpegLossless.dcm
1494    # - Particularities:
1495    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1496    0028|0101 "16"                         # Bits Stored
1497    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1498    0028|0100 "16"                         # Bits Allocated
1499    0028|0102 "15"                         # High Bit
1500    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1501                                           # ... Process 14 [Selection Value 1]
1502    # No "7fe0|0010"
1503 ]
1504
1505 [ LEADTOOLS_FLOWERS-16-MONO2-RLE.dcm
1506    # - Particularities:
1507    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1508    0028|0101 "16"                         # Bits Stored
1509    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1510    0028|0100 "16"                         # Bits Allocated
1511    0028|0102 "15"                         # High Bit
1512    0002|0010 "1.2.840.10008.1.2.5"        # Transfer Syntax: RLE Lossless
1513    # No "7fe0|0010"
1514 ]
1515
1516 [ LEADTOOLS_FLOWERS-16-MONO2-Uncompressed.dcm
1517    # - Particularities:
1518    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1519    0028|0101 "16"                         # Bits Stored
1520    0028|0004 "MONOCHROME2 "               # Photometric Interpretation
1521    0028|0100 "16"                         # Bits Allocated
1522    0028|0102 "15"                         # High Bit
1523    0002|0010 "1.2.840.10008.1.2.1"        # Explicit VR - Little Endian
1524    7fe0|0010 "gdcm::NotLoaded Address:1942 Length:856000 x(d0fc0)"
1525 ]
1526
1527 [ LEADTOOLS_FLOWERS-24-RGB-JpegLossless.dcm
1528    # - Particularities:
1529    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1530    0028|0101 "8"                          # Bits Stored
1531    0028|0004 "RGB "                       # Photometric Interpretation
1532    0028|0100 "8"                          # Bits Allocated
1533    0028|0102 "7"                          # High Bit
1534    0028|0002 "3"                          # Samples per Pixel
1535    0002|0010 "1.2.840.10008.1.2.4.70"     # Transfer Syntax: jpeg Lossless,
1536                                           # ... Process 14 [Selection Value 1]
1537    # No "7fe0|0010"
1538 ]
1539
1540 [ LEADTOOLS_FLOWERS-24-RGB-JpegLossy.dcm
1541    # - Particularities:
1542    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1543    0028|0101 "8"                          # Bits Stored
1544    0028|0004 "RGB "                       # Photometric Interpretation
1545    0028|0100 "8"                          # Bits Allocated
1546    0028|0102 "7"                          # High Bit
1547    0028|0002 "3"                          # Samples per Pixel
1548    0002|0010 "1.2.840.10008.1.2.4.50"     # Transfer Syntax: jpeg Baseline,
1549                                           # ... Process 1 
1550    # No "7fe0|0010"
1551 ]
1552
1553 [ LEADTOOLS_FLOWERS-24-RGB-Uncompressed.dcm
1554    # - Particularities:
1555    0002|0016 "LEADTOOLS "                 # Source Application Entity Title
1556    0028|0101 "8"                          # Bits Stored
1557    0028|0004 "RGB "                       # Photometric Interpretation
1558    0028|0100 "8"                          # Bits Allocated
1559    0028|0102 "7"                          # High Bit
1560    0028|0002 "3"                          # Samples per Pixel
1561    0002|0010 "1.2.840.10008.1.2.1"        # Explicit VR - Little Endian
1562    7fe0|0010 "gdcm::NotLoaded Address:1934 Length:1284000 x(1397a0)"
1563 ]
1564
1565 ###########################################################################
1566 ### LIBIDO format images
1567 ### The libido format is an "extension" of the old ACRNEMA version 1.1
1568 ### format. It was "designed" to embed images of float or double type
1569 ### (in the sense of the C language) within the ACRNEMA format.
1570 ### LIBIDO images are typically used as a temporary container for
1571 ### observing the internal stages of a computation image pipeline
1572 ### (i.e. some kind of file watch point), with a shallow compatibility 
1573 ### with the ACRNEMA format. By shallow compatibility we mean that
1574 ### a classical DICOM viewer has no knowledge of the LIBIDO format 
1575 ### and hence cannot display it (how to display a "double" image anyhow).
1576 ###    Very few tags are available (e.g. no "Manufacturer" related
1577 ### info, no medical information).
1578 ### LIBIDO images can be recognized by their "Recognition Code"
1579 ###########################################################################
1580 [ LIBIDO-16-ACR_NEMA-Volume.dcm
1581    # - Particularities:
1582    #   * this file represents a "volume" i.e. it has a "Number of Planes",
1583    #     (but no "Number of Frames")
1584    0008|0010 "ACRNEMA_LIBIDO_1.1"         # Recognition Code (RET)
1585    0028|0005 "3"                          # Image Dimensions (RET)
1586    0028|0010 "50"                         # Rows
1587    0028|0011 "50"                         # Columns
1588    0028|0012 "262"                        # Planes
1589    0028|0101 "16"                         # Bits Stored
1590    0028|0100 "16"                         # Bits Allocated
1591    0028|0102 "15"                         # High Bit
1592    0028|0103 "0"                          # Pixel Representation
1593    7fe0|0010 "gdcm::NotLoaded Address:210 Length:1310000 x(13fd30)"
1594 ]
1595
1596 [ LIBIDO-24-ACR_NEMA-Rectangle.dcm
1597    # FIXME TODO \todo
1598    # The Rows and Columns presence breaks this test !!! 
1599    #
1600    # - Particularities:
1601    #   * RGB encoding (24 bits).
1602    #   * Rectangle image : 100x400
1603    0008|0010 "ACRNEMA_LIBIDO_1.1"         # Recognition Code (RET)
1604    0028|0005 "2"                          # Image Dimensions (RET)
1605    #0028|0010 "100"                       # Rows
1606    #0028|0011 "400"                       # Columns
1607    0028|0101 "24"                         # Bits Stored
1608    0028|0100 "24"                         # Bits Allocated
1609    0028|0102 "23"                         # High Bit
1610    0028|0103 "0"                          # Pixel Representation
1611    7fe0|0010 "gdcm::NotLoaded Address:182 Length:120000 x(1d4c0)"
1612 ]
1613
1614 [ LIBIDO-8-ACR_NEMA-Lena_128_128.acr
1615    # FIXME TODO \todo
1616    # The Rows and Columns presence breaks this test !!! 
1617    #
1618    # - Particularities:
1619    #   * the classical lena image (with size 128x128), recoded as LIBIDO image
1620    0008|0010 "ACRNEMA_LIBIDO_1.1"         # Recognition Code (RET)
1621    0028|0005 "2"                          # Image Dimensions (RET)
1622    #0028|0010 "128"                       # Rows
1623    #0028|0011 "128"                       # Columns
1624    0028|0101 "8"                          # Bits Stored
1625    0028|0100 "8"                          # Bits Allocated
1626    0028|0102 "7"                          # High Bit
1627    0028|0103 "0"                          # Pixel Representation
1628    7fe0|0010 "gdcm::NotLoaded Address:182 Length:16384 x(4000)"
1629 ]
1630
1631 ###########################################################################
1632 ### Documented images not yet integrated in the test suite
1633 ###########################################################################
1634 #
1635 #
1636 #
1637
1638 ###########################################################################
1639 ### Images present in gdcmData but whose peculiarity is not documented yet
1640 ###########################################################################
1641 # 00191113.dcm #Jpeg Lossless 4 frames X-Ray Angiography
1642 #
1643 # 012345.002.050.dcm # a lot of FL and FD entries in sahdow group 0027
1644 #
1645 # 3E768EB7.dcm # jpeg lossless, empty Basic Offset Table Item Length =4
1646 #
1647 # DermaColorLossLess.dcm  # native RBG image
1648 #
1649 # DICOMDIR #small DICOMDIR (4 patients, 1561 first-level SQItems, 
1650 #                           embedded second level sequences at 0008|1140)
1651 #
1652 # RadBWLossLess.dcm # jpeg lossless, empty Basic Offset Table Item Length= 0
1653 #
1654 # test.acr #ACR-LibIDO formated image. Was used as a test image by testSuite
1655 #