5 # - gdcmreads the images of gdcmData
6 # - gdcmwrites the result, with Explicit Value Representation
9 # - using creatis' LibIDO/affimdcm (you may drop it)
10 # - using mathieu malaterre's vtkgdcmViewer
11 # - using Eric Nolf's xmedcon
12 # - the full checking should be using e-film,
13 # but it doesn't work on Windoz
16 # Sebastien Barre's files have no interest here, since the header is
17 # a *very clean* ACR-NEMA
18 # Our problems come from DICOM V3, with SQ, shadow groups, etc.
20 # --> EVERYWHERE, with XMEDCOM :
21 # --> warning: Incorrect OB value representation (fixed)
22 # --> to be fixed in the WRITER ...
26 /home/jpr/JUNK/gdcmbin/bin/Write mr176621.dcm x;
27 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument mr176621.dcm.XDCM 2; .
28 vtkgdcmViewer mr176621.dcm.XDCM; # OK
29 xmedcon mr176621.dcm.XDCM; # warning: No transfer syntax found
30 # warning: Tag with uneven length
32 #breaks because 'DICM" without group 0000
33 # Write DCM needs 'CheckFileHeaderConsistency' method
40 # ------------------------------------------- BIG SOUCY !!
41 affimdcm filein=cr172241.dcm zoom=-4;
42 xmedcon cr172241.dcm; # OK
43 /home/jpr/JUNK/gdcmbin/bin/Write cr172241.dcm r;
44 affim filein=cr172241.dcm.RAW nbit=16 DIMX=1792 DIMY=2392;
45 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr172241.dcm 2; #OK
47 vtkgdcmViewer cr172241.dcm; # breaks (white image) WHITE IMAGE ?!?
48 # Doesn't break DaVaW ...
49 /home/jpr/JUNK/gdcmbin/bin/Write cr172241.dcm x;
50 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr172241.dcm.XDCM 2; #OK
51 xmedcon cr172241.dcm.XDCM; # OK Incorrect OB value representation (fixed)
52 affimdcm filein=cr172241.dcm.XDCM; # OK
53 vtkgdcmViewer cr172241.dcm.XDCM; # breaks ?!? White image !
56 vtkgdcmViewer Wrist.pap; # PAPYRUS 3.0 single frame image
57 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument Wrist.pap 2;
58 /home/jpr/JUNK/gdcmbin/bin/Write Wrist.pap x; # OK
59 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument Wrist.pap.XDCM
62 /home/jpr/JUNK/gdcmbin/bin/Write cr_45031.dcm x;
63 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr_45031.dcm.XDCM 2;
64 vtkgdcmViewer cr_45031.dcm.XDCM; #OK
65 xmedcon cr_45031.dcm.XDCM; #OK
67 /home/jpr/JUNK/gdcmbin/bin/Write CR-MONO1-10-chest.dcm x;
68 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CR-MONO1-10-chest.dcm.XDCM 2; #OK
69 vtkgdcmViewer CR-MONO1-10-chest.dcm.XDCM; #OK
70 xmedcon CR-MONO1-10-chest.dcm.XDCM; #OK Incorrect OB value representation (fixed)
72 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-12-lomb-an2.acr2 x;
73 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-12-lomb-an2.acr2.XDCM 2; # OK
74 vtkgdcmViewer CT-MONO2-12-lomb-an2.acr2.XDCM; #OK
75 xmedcon CT-MONO2-12-lomb-an2.acr2.XDCM; #OK Incorrect OB value representation (fixed)
77 xmedcon gdcm-MR-SIEMENS-16.acr1; # Original OK
78 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-1.acr; #OK
79 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-SIEMENS-16-1.acr x;
80 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-1.acr.XDCM 2;
81 vtkgdcmViewer gdcm-MR-SIEMENS-16-1.acr.XDCM;
82 xmedcon gdcm-MR-SIEMENS-16.acr1.XDCM; #breaks error: No images found
84 xmedcon gdcm-MR-SIEMENS-16.acr2 #original OK
85 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-SIEMENS-16-2.acr x;
86 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-2.acr.XDCM 2;
87 vtkgdcmViewer gdcm-MR-SIEMENS-16-2.acr.XDCM; #OK
88 xmedcon gdcm-MR-SIEMENS-16.acr2.XDCM; #breaks
89 # --> TODO fix group length for odd groups#Feb 03 18:50:24 log[4419]: warning: No transfer syntax found
90 #Feb 03 18:50:24 log[4419]: warning: Tag with uneven length
91 #Feb 03 18:50:24 log[4419]: error: No images found
93 /home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-an2.acr2 x;
94 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument newACR1000.nema.XDCM 2;
95 vtkgdcmViewer MR-MONO2-12-an2.acr2.XDCM;
96 xmedcon MR-MONO2-12-an2.acr2.XDCM; # OK warning: Incorrect OB value representation
98 /home/jpr/JUNK/gdcmbin/bin/Write newACR1000.nema x; # == gdcmMR-SIEMENS-16.acr2
99 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument newACR1000.nema.XDCM; #OK
100 vtkgdcmViewer newACR1000.nema.XDCM; #OK
101 xmedcon newACR1000.nema.XDCM; # breaks : no image found
103 /home/jpr/JUNK/gdcmbin/bin/Write oldACR00001.ima x; # == gdcm-MR-SIEMENS.16.acr1
104 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument oldACR00001.ima.XDCM; # OK
105 vtkgdcmViewer oldACR00001.ima.XDCM; #OK
106 xmedcon oldACR00001.ima.XDCM; # breaks : no image found
108 /home/jpr/JUNK/gdcmbin/bin/Write OT-MONO2-8-a7.dcm x;
109 vtkgdcmViewer OT-MONO2-8-a7.dcm.XDCM; #OK
110 xmedcon OT-MONO2-8-a7.dcm.XDCM ; #OK
112 #No Samples Per Pixel
113 #--------------------
114 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-CR-DCMTK-16-NonSamplePerPix.dcm x;
115 affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm;
116 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM 2; # OK
117 vtkgdcmViewer gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM; #OK
118 xmedcon gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM #OK
120 #Unnormalized Rectangular LibIDO format image
121 #--------------------------------------------
122 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-ACR-LibIDO.acr x;
123 vtkgdcmViewer gdcm-ACR-LibIDO.acr.XDCM; # OK
124 xmedcon gdcm-ACR-LibIDO.acr.XDCM; #inverts x and y (of course)
126 #Bits Allocated =12, Bits Stored=12
127 #----------------------------------
128 #MR Philips (once upon a time in Lyon-Sud)
129 /home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-angio-an1.acr1 x;
130 vtkgdcmViewer MR-MONO2-12-angio-an1.acr1.XDCM; # shitty image
131 xmedcon MR-MONO2-12-angio-an1.acr1.XDCM; # pas mieux : warning: Incorrect PixelData length
135 /home/jpr/JUNK/gdcmbin/bin/Write US.3405.1.dcm x;
136 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
137 echo " PhotometricInterpretation=RGB";
138 vtkgdcmViewer US.3405.1.dcm.XDCM; #OK
139 xmedcon US.3405.1.dcm.XDCM; #OK
141 # ------------------------------------------- KING SIZE SOUCY !!
143 /home/jpr/JUNK/gdcmbin/bin/Write OT-PAL-8-face.dcm x;
144 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
145 echo " PhotometricInterpretation=PALETTE COLOR";
146 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocumentOT-PAL-8-face.dcm.XDCM; OK
147 affimdcm filein=OT-PAL-8-face.dcm.XDCM; #OK
148 vtkgdcmViewer OT-PAL-8-face.dcm.XDCM; # seg fault .!?
149 xmedcon OT-PAL-8-face.dcm.XDCM; #OK
151 /home/jpr/JUNK/gdcmbin/bin/Write 8BitsUncompressedColor.dcm x;
152 vtkgdcmViewer 8BitsUncompressedColor.dcm.XDCM; # seg fault .!?
153 xmedcon 8BitsUncompressedColor.dcm.XDCM ; #OK
155 # Implicit VR - Little Endian
156 #-----------------------------
158 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-ankle.dcm x;
159 xmedcon CT-MONO2-16-ankle.dcm.XDCM; #ok
160 vtkgdcmViewer CT-MONO2-16-ankle.dcm.XDCM; #ok
161 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-16-ankle.dcm 2; #ok
163 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-ort.dcm x;
164 vtkgdcmViewer CT-MONO2-16-ort.dcm.XDCM; #OK
165 xmedcon CT-MONO2-16-ort.dcm.XDCM; #OK
168 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-8-abdo.dcm x;
169 vtkgdcmViewer CT-MONO2-8-abdo.dcm.XDCM; #OK
170 xmedcon CT-MONO2-8-abdo.dcm.XDCM; #OK
172 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16.dcm x;
173 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16.dcm.XDCM 2; #OK
174 vtkgdcmViewer gdcm-MR-PHILIPS-16.dcm.XDCM; # OK
175 xmedcon gdcm-MR-PHILIPS-16.dcm.XDCM; # error: No images found
176 xmedcon gdcm-MR-PHILIPS-16.dcm; # OK with original image
178 /home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-16-head.dcm x;
179 vtkgdcmViewer MR-MONO2-16-head.dcm.XDCM; #OK
180 xmedcon MR-MONO2-16-head.dcm.XDCM; #OK
182 /home/jpr/JUNK/gdcmbin/bin/Write multiframe1Integris.dcm x;
183 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-8-abdo.dcm.XDCM 2; #OK
184 vtkgdcmViewer multiframe1Integris.dcm.XDCM; #OK
185 xmedcon multiframe1Integris.dcm.XDCM; #breaks No images found
186 xmedcon multiframe1Integris.dcm;
188 /home/jpr/JUNK/gdcmbin/bin/Write multiframe2GE.dcm x;
189 vtkgdcmViewer multiframe2GE.dcm.XDCM; #OK
191 xmedcon multiframe2GE.dcm.XDCM; #breaks No images found
193 vtkgdcmViewer irmPhlipsNew1.dcm;
194 /home/jpr/JUNK/gdcmbin/bin/Write irmPhlipsNew1.dcm x; # == gdcm-MR-PHILIPS-16.dcm
195 vtkgdcmViewer irmPhlipsNew1.dcm.XDCM; #OK
196 xmedcon irmPhlipsNew1.dcm.XDCM; #breaks : No images found
198 #avec imagette (icone)
200 vtkgdcmViewer icone.dcm; #OK
201 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument icone.dcm 2 | grep fffe;
202 echo "so many 0xfffe ! (274)"
204 /home/jpr/JUNK/gdcmbin/bin/Write icone.dcm x;
205 xmedcon icone.dcm; #original image OK
206 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument icone.dcm.XDCM 2;
207 #/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument OK; vtkgdcmViewer OK; breaks xmedcom
208 vtkgdcmViewer icone.dcm.XDCM; # shitty image --> TODO : FIX (once again)icon pb
209 xmedcon icone.dcm.XDCM; #breaks
217 #Explicit VR - Little Endian
218 #----------------------------
219 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-brain.dcm x;
220 vtkgdcmViewer CT-MONO2-16-brain.dcm.XDCM; #OK
221 xmedcon CT-MONO2-16-brain.dcm.XDCM; #OK
223 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2;
224 xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm #OK :Skip PHILIPS premature item bug
225 vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm; #OK
226 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16-Multi-Seq.dcm x;
227 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM 2; #pixel group missing??!?
228 #vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM; #shitty image, ofcourse
229 xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM; # works ?!?
230 vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM;
233 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16-NonRectPix.dcm x;
234 vtkgdcmViewer gdcm-MR-PHILIPS-16-NonRectPix.dcm.XDCM; #OK
235 xmedcon gdcm-MR-PHILIPS-16-NonRectPix.dcm.XDCM; #OK warning: Incorrect sequence length
237 /home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-8-16x-heart.dcm x; #multiframe # equals to ???
238 vtkgdcmViewer MR-MONO2-8-16x-heart.dcm.XDCM; #OK
239 xmedcon MR-MONO2-8-16x-heart.dcm.XDCM; #OK
241 /home/jpr/JUNK/gdcmbin/bin/Write NM-MONO2-16-13x-heart.dcm x; #multiframe
242 vtkgdcmViewer NM-MONO2-16-13x-heart.dcm.XDCM; #OK
243 xmedcon NM-MONO2-16-13x-heart.dcm.XDCM; #OK
245 /home/jpr/JUNK/gdcmbin/bin/Write sonataMonaco.dcm x;
246 vtkgdcmViewer sonataMonaco.dcm.XDCM; #OK
247 xmedcon sonataMonaco.dcm.XDCM; #OK
250 /home/jpr/JUNK/gdcmbin/bin/Write US-MONO2-8-8x-execho.dcm x;
251 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument US-MONO2-8-8x-execho.dcm.XDCM;
252 vtkgdcmViewer US-MONO2-8-8x-execho.dcm.XDCM; # OK
253 xmedcon US-MONO2-8-8x-execho.dcm.XDCM; #OK
257 /home/jpr/JUNK/gdcmbin/bin/Write US-RGB-8-epicard.dcm x;
258 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
259 echo " PhotometricInterpretation=RGB";
260 vtkgdcmViewer US-RGB-8-epicard.dcm.XDCM; #OK
261 xmedcon US-RGB-8-epicard.dcm.XDCM; #OK
263 /home/jpr/JUNK/gdcmbin/bin/Write US-RGB-8-esopecho.dcm x;
264 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
265 echo " PhotometricInterpretation=RGB",
266 xmedcon US-RGB-8-esopecho.dcm.XDCM; #OK
268 # Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])
269 #--------------------------------------------------------------------------
272 /home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-chest.dcm x;
273 vtkgdcmViewer CT-MONO2-16-chest.dcm.XDCM; #OK
274 xmedcon CT-MONO2-16-chest.dcm.XDCM; #OK
276 /home/jpr/JUNK/gdcmbin/bin/Write 012345.002.050.dcm x;
277 vtkgdcmViewer 012345.002.050.dcm.XDCM; #OK
278 xmedcon 012345.002.050.dcm.XDCM; #OK
280 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLess3a.dcm x;
281 vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm.XDCM ; #OK
282 xmedcon gdcm-JPEG-LossLess3a.dcm.XDCM; #OK
284 /home/jpr/JUNK/gdcmbin/bin/Write XA-MONO2-8-12x-catheter.dcm x;
285 vtkgdcmViewer XA-MONO2-8-12x-catheter.dcm.XDCM; #OK
286 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument XA-MONO2-8-12x-catheter.dcm.XDCM 2;
287 xmedcon XA-MONO2-8-12x-catheter.dcm.XDCM; #OK
289 /home/jpr/JUNK/gdcmbin/bin/Write xa_integris.dcm x;
290 echo "a lot of fragments expected here";
291 vtkgdcmViewer xa_integris.dcm.XDCM #OK
292 xmedcon xa_integris.dcm.XDCM #OK
294 /home/jpr/JUNK/gdcmbin/bin/Write 16BitsJpegLosslessGrayScale.dcm x;
295 vtkgdcmViewer 16BitsJpegLosslessGrayScale.dcm.XDCM #OK
296 xmedcon 16BitsJpegLosslessGrayScale.dcm.XDCM #OK
298 #comming from GE dlx via VTServer
299 vtkgdcmViewer I9000001.dcm;
300 /home/jpr/JUNK/gdcmbin/bin/Write I9000001.dcm x;
301 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument I9000001.dcm.XDCM 2; # pixel group NOT FOUND ??!??
303 vtkgdcmViewer I9000001.dcm.XDCM;
305 xmedcon I9000001.dcm.XDCM;
307 #JPEG Extended (Process 2 & 4) // 16 bits
308 #-----------------------------
309 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-Extended.dcm x;
310 vtkgdcmViewer gdcm-JPEG-Extended.dcm.XDCM; #OK
311 xmedcon gdcm-JPEG-Extended.dcm.XDCM; #OK
313 /home/jpr/JUNK/gdcmbin/bin/Write jpeglossy1.dcm x;
314 vtkgdcmViewer jpeglossy1.dcm.XDCM #OK
315 xmedcon jpeglossy1.dcm.XDCM #OK
317 #JPEG Baseline (Process 14)
318 #--------------------------
319 /home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-shoulder.dcm x;
320 vtkgdcmViewer MR-MONO2-12-shoulder.dcm.XDCM; #OK
321 xmedcon MR-MONO2-12-shoulder.dcm.XDCM; #OK
324 #fichier format ecat.
325 #/home/jpr/JUNK/gdcmbin/bin/Write imageEcat.ecat r
329 #JPEG Baseline (Process 1)
330 #-------------------------
332 /home/jpr/JUNK/gdcmbin/bin/Write US.1.2.dcm x;
333 echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)";
334 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
335 echo " PhotometricInterpretation=YBR_FULL_422";
336 vtkgdcmViewer US.1.2.dcm.XDCM; #OK
337 xmedcon US.1.2.dcm.XDCM; #OK
340 /home/jpr/JUNK/gdcmbin/bin/Write CLIP0001-Sequoia-U11.dcm x;
341 vtkgdcmViewer CLIP0001-Sequoia-U11.dcm.XDCM; #OK
342 xmedcon CLIP0001-Sequoia-U11.dcm.XDCM; #OK
346 /home/jpr/JUNK/gdcmbin/bin/Write canadaAloka.dcm x;
347 echo "expected pixelType=8U SamplesPerPixel=1";
348 echo " PlanarConfiguration=0 PhotometricInterpretation=MONOCHROME2";
349 echo " nb Frames (DIMZ) : 1";
350 vtkgdcmViewer canadaAloka.dcm.XDCM; # OK
351 xmedcon canadaAloka.dcm.XDCM; #OK
353 /home/jpr/JUNK/gdcmbin/bin/Write jpeglossy1.dcm x; # equal to ???
354 vtkgdcmViewer jpeglossy1.dcm.XDCM; #OK
355 xmedcon jpeglossy1.dcm.XDCM; #OK
357 /home/jpr/JUNK/gdcmbin/bin/Write FMAG0001.dcm x;
358 echo "expected pixelType=8U SamplesPerPixel=3";
359 echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
360 echo " nb Frames (DIMZ) : 1";
361 vtkgdcmViewer FMAG0001.dcm.XDCM; #OK
362 xmedcon FMAG0001.dcm.XDCM; #OK
364 vtkgdcmViewer QMAG0001.dcm; #OK
365 xmedcon QMAG0001.dcm; #original breaks xmedcon
366 #warning: Unknown PhotometricInterpretation
367 /home/jpr/JUNK/gdcmbin/bin/Write QMAG0001.dcm x;
368 echo "expected pixelType=8U SamplesPerPixel=3";
369 echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
370 vtkgdcmViewer QMAG0001.dcm.XDCM; #OK
371 xmedcon QMAG0001.dcm.XDCM; #OK
373 /home/jpr/JUNK/gdcmbin/bin/Write US-PAL-8-10x-echo.dcm x;
374 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
375 echo " PhotometricInterpretation=PALETTE COLOR";
376 echo " nb Frames (DIMZ): 10";
377 echo "expected : Parsing 10 'single fragment' Segments";
378 echo " Reading 10 'single fragment' Segments (ouf!)";
379 vtkgdcmViewer US-PAL-8-10x-echo.dcm.XDCM; # SEG FAULT
380 xmedcon US-PAL-8-10x-echo.dcm.XDCM; #OK
382 /home/jpr/JUNK/gdcmbin/bin/Write 8BitsRunLengthGrayScale.dcm x;
383 echo "expected : correct Gray image";
384 vtkgdcmViewer 8BitsRunLengthGrayScale.dcm.XDCM; #OK
385 xmedcon 8BitsRunLengthGrayScale.dcm.XDCM; #OK
387 /home/jpr/JUNK/gdcmbin/bin/Write 8BitsRunLengthColor.dcm x;
388 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=2";
389 echo " PhotometricInterpretation=PALETTE COLOR";
390 vtkgdcmViewer 8BitsRunLengthColor.dcm.XDCM; # SEG FAULT
391 echo "WAS expected correct color image";
392 xmedcon 8BitsRunLengthColor.dcm.XDCM; #OK
394 #RLE 16 bits --> Try to find some more images
396 /home/jpr/JUNK/gdcmbin/bin/Write 16BitsRunLengthGrayScale.dcm x;
397 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0";
398 echo " PhotometricInterpretation=MONOCHROME2";
399 vtkgdcmViewer 16BitsRunLengthGrayScale.dcm.XDCM;
400 xmedcon 16BitsRunLengthGrayScale.dcm.XDCM; #OK
402 #Were supposed to be bugged
403 #--------------------------
405 xmedcon 00191113.dcm; #No images found
406 /home/jpr/JUNK/gdcmbin/bin/Write 00191113.dcm x;
407 vtkgdcmViewer 00191113.dcm.XDCM; #OK
408 xmedcon 00191113.dcm.XDCM; #OK
410 xmedcon DermaColorLossLess.dcm; #breaks xmedcon : No images found
411 /home/jpr/JUNK/gdcmbin/bin/Write DermaColorLossLess.dcm x;
412 xmedcon DermaColorLossLess.dcm.XDCM; #breaks xmedcon
413 #Feb 02 19:33:16 log[2619]: warning: Tag with uneven length
414 #Feb 02 19:33:16 log[2619]: warning: No transfer syntax found
415 #Feb 02 19:33:16 log[2619]: error: No images found
416 vtkgdcmViewer DermaColorLossLess.dcm.XDCM #OK
418 #Original breaks xmedcon, affimdcm complian ?!
419 affimdcm filein=RadBWLossLess.dcm; #OK
420 vtkgdcmViewer RadBWLossLess.dcm; #OK
421 xmedcon RadBWLossLess.dcm; # breaks :error: No images found
422 /home/jpr/JUNK/gdcmbin/bin/Write RadBWLossLess.dcm x;
423 vtkgdcmViewer RadBWLossLess.dcm.XDCM; #OK
424 xmedcon RadBWLossLess.dcm.XDCM; #error: No images found
429 #Rectangular old 24 Bits image
430 vtkgdcmViewer gdcm-RGB-LibIDORect.acr; # OK
431 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-RGB-LibIDORect.acr x;
432 vtkgdcmViewer gdcm-RGB-LibIDORect.acr.XDCM;
433 xmedcon gdcm-RGB-LibIDORect.acr.XDCM; # breaks : large Bit Allocated (24)
434 #TODO transform '24 bit images' into 8 bits + samples per pixel = 3
436 #MR GE GENESIS_SIGNA Palo Alto
437 /home/jpr/JUNK/gdcmbin/bin/Write DicomSampleNastyGEImage.dcm x;
438 echo " expected : warning uneven length (13) for 0008|103e";
439 vtkgdcmViewer DicomSampleNastyGEImage.dcm.XDCM; #OK
440 xmedcon DicomSampleNastyGEImage.dcm.XDCM; #OK
442 #MR Philips NTSCAN Hop. Neuro Lyon
443 /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument philipsMR-lossy.ima #OK
444 xmedcon philipsMR-lossy.ima; #original breaks xmedcon
445 vtkgdcmViewer philipsMR-lossy.ima; #Original OK
446 /home/jpr/JUNK/gdcmbin/bin/Write philipsMR-lossy.ima x;
447 echo "WAS expected : 'Bogus Huffman table definition' on philipsMR-lossy.ima";
448 echo "IS expected : 'JERR_BAD_HUFF_TABLE sym 16 (>15)' but the show goes on";
449 vtkgdcmViewer philipsMR-lossy.ima.XDCM; # BLACK IMAGE
450 xmedcon philipsMR-lossy.ima.XDCM; #OK
452 #CT Siemens Hop. Salengro Lille
453 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLess3a.dcm x;
454 echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels";
455 echo "xmedcon says 'error: Unexpected end of file'";
456 vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm.XDCM; #OK; needs 'R' for display
457 xmedcon gdcm-JPEG-LossLess3a.dcm.XDCM; #OK
459 #CR Philips Thoravision Hop Cardio Lyon
460 affimdcm filein=gdcm-JPEG-LossLessThoravision.dcm; # OK, wrong image as usual
461 xmedcon gdcm-JPEG-LossLessThoravision.dcm; #original seg faults xmedcon
462 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLessThoravision.dcm x; #breaks ;
463 echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416";
464 echo "breaks xmedcom, breaks e-film";
465 echo "WAS expected : hashed image -with jLBJpeg-";
466 echo "IS expected : Seg Fault";
467 xmedcon gdcm-JPEG-LossLessThoravision.dcm.XDCM; # NOT CHECKED
469 #MR Picker ST. ANTHONY HOSPITAL
470 /home/jpr/JUNK/gdcmbin/bin/Write MR.6799.1.dcm x; #equal to ???
471 echo "OK; DICOM Image with NO Preamble";
472 vtkgdcmViewer MR.6799.1.dcm.XDCM; #OK
473 xmedcon MR.6799.1.dcm.XDCM; #OK
475 #Segmented Palette Color LUT Data
476 xmedcon gdcm-US-ALOKA-16.dcm; #breaks # Missing CLUT
477 vtkgdcmViewer gdcm-US-ALOKA-16.dcm3; #OK
478 /home/jpr/JUNK/gdcmbin/bin/Write gdcm-US-ALOKA-16.dcm x;
479 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0";
480 echo " PhotometricInterpretation=PALETTE COLOR";
481 echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account";
482 echo "neither e-film nor DicomWorks deals with the color"
483 echo "breaks xmedcom";
484 echo "breaks vtkgdcmViewer (bad result : 24 bits expected; 16 found in Pixels area)";
485 vtkgdcmViewer gdcm-US-ALOKA-16.dcm.XDCM; #OK
486 xmedcon gdcm-US-ALOKA-16.dcm.XDCM; #breaks
487 #Feb 03 13:40:19 log[26999]: error: Missing CLUT
488 #Feb 03 13:40:19 log[26999]: error: No images found
490 # bugged Siemens 'Leonardo' image
491 /home/jpr/JUNK/gdcmbin/bin/Write 8078283Leonardo.dcm x;
492 xmedcon 8078283Leonardo.dcm.XDCM; #OK
494 #CT McTwin Elscint C.H.R.U LILLE C.HURIEZ
495 xmedcon MxTwinLossLess.dcm; #breaks No images found
496 vtkgdcmViewer MxTwinLossLess.dcm; #OK
497 /home/jpr/JUNK/gdcmbin/bin/Write MxTwinLossLess.dcm x;
498 vtkgdcmViewer MxTwinLossLess.dcm.XDCM; #OK
499 xmedcon MxTwinLossLess.dcm.XDCM #breaks
501 # MRI image from VPRO burned CD
502 vtkgdcmViewer mriThruVPRO.dcm; # Tasteless SHIT
503 xmedcon mriThruVPRO.dcm; # pas mieux
504 /home/jpr/JUNK/gdcmbin/bin/Write mriThruVPRO.dcm x;
505 vtkgdcmViewer mriThruVPRO.dcm.XDCM;
506 echo "expected : tasteless SHIT !"
507 echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
509 # gdcm made Theralys image
510 # due to H table, a SeQuence is tagged with 0 length
511 # when using gdcmFile::WriteDcmXXX
512 xmedcon fromTheralys.dcm; # Original breaks xmedcon
513 /home/jpr/JUNK/gdcmbin/bin/Write fromTheralys.dcm x;
514 vtkgdcmViewer fromTheralys.dcm.XDCM; # OK
515 xmedcon fromTheralys.dcm.XDCM; # OK