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