4 # We just write RAW Files and AFFIM them
5 # to be sure the reading was OK
10 testWrite mr176621.dcm r;
11 affim filein=mr176621.dcm.raw DIMX=512 DIMY=512 nbit=16
15 testWrite cr172241.dcm r;
16 affim filein=cr172241.dcm.raw DIMX=1792 DIMY=2392 nbit=16 zoom=-4
18 testWrite cr_45031.dcm r
19 affim filein=cr_45031.dcm.raw DIMX=1670 DIMY=2010 nbit=16 zoom=-4
21 testWrite CR-MONO1-10-chest.dcm r
22 affim filein=CR-MONO1-10-chest.dcm.raw DIMX=440 DIMY=440 nbit=16
24 testWrite CT-MONO2-12-lomb-an2.acr2 r
25 affim filein=CT-MONO2-12-lomb-an2.acr2.raw DIM=512 nbit=16
27 testWrite gdcm-MR-SIEMENS-16.acr1 r
28 affim filein=gdcm-MR-SIEMENS-16.acr1.raw DIMX=256 DIMY=256 nbit=16
30 testWrite gdcm-MR-SIEMENS-16.acr2 r
31 affim filein=gdcm-MR-SIEMENS-16.acr2.raw DIMX=512 DIMY=512 nbit=16
33 testWrite MR-MONO2-12-an2.acr2 r
34 affim filein=MR-MONO2-12-an2.acr2.raw DIMX=256 DIMY=256 nbit=16
36 testWrite newACR1000.nema r # == gdcmMR-SIEMENS-16.acr2
37 affim filein=newACR1000.nema.raw DIMX=512 DIMY=512 nbit=16
39 testWrite oldACR00001.ima r # == gdcm-MR-SIEMENS.16.acr1
40 affim filein=oldACR00001.ima.raw DIMX=256 DIMY=256 nbit=16
42 testWrite OT-MONO2-8-a7.dcm r
43 affim filein=OT-MONO2-8-a7.dcm.raw DIMX=512 DIMY=512
47 testWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm r
48 affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm dim=750 nbit=8
50 #Unnormalized Rectangular LibIDO format image
51 #--------------------------------------------
52 testWrite gdcm-ACR-LibIDO.acr r
53 affim filein=gdcm-ACR-LibIDO.acr.raw dimx=512 dimy=301
55 #Bits Allocated =12, Bits Stored=12
56 #----------------------------------
57 #MR Philips (once upon a time in Lyon-Sud)
58 testWrite MR-MONO2-12-angio-an1.acr1 r
59 affim filein=MR-MONO2-12-angio-an1.acr1.raw dim=256 nbit=16
63 testWrite US.3405.1.dcm r
64 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0"
65 echo " PhotometricInterpretation=RGB"
66 affim filein=US.3405.1.dcm.raw DIMX=768 DIMY=576 nbit=24
68 testWrite OT-PAL-8-face.dcm r
69 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1"
70 echo " PhotometricInterpretation=PALETTE COLOR"
71 affim filein=OT-PAL-8-face.dcm.raw dimx=640 dimy=480 nbit=24
73 testWrite 8BitsUncompressedColor.dcm r
74 affim filein=8BitsUncompressedColor.dcm.raw dimx=800 dimy=535 nbit=24
76 # Implicit VR - Little Endian
77 #-----------------------------
79 testWrite CT-MONO2-16-ankle.dcm r
80 affim filein=CT-MONO2-16-ankle.dcm.raw DIMX=512 DIMY=512 nbit=16 signe=o
82 testWrite CT-MONO2-16-ort.dcm r
83 affim filein=CT-MONO2-16-ort.dcm.raw DIMX=512 DIMY=512 nbit=16 signe=o
85 testWrite CT-MONO2-8-abdo.dcm r
86 affim filein=CT-MONO2-8-abdo.dcm.raw DIMX=512 DIMY=512
88 testWrite gdcm-MR-PHILIPS-16.dcm r
89 affim filein=gdcm-MR-PHILIPS-16.dcm.raw DIMX=256 DIMY=256 nbit=16
91 testWrite MR-MONO2-16-head.dcm r
92 affim filein=MR-MONO2-16-head.dcm.raw dim=256 nbit=16 signe=o
94 testWrite multiframe1Integris.dcm r
95 affim filein=multiframe1Integris.dcm.raw dim=1024 nbit=16 zoom=-2
96 affim filein=multiframe1Integris.dcm.raw dim=1024 nbit=16 offset=31457280 zoom=-2
98 testWrite multiframe2GE.dcm r
99 affim filein=multiframe2GE.dcm.raw dim=512
100 affim filein=multiframe2GE.dcm.raw dim=512 offset=14417920
102 testWrite irmPhlipsNew1.dcm r # == gdcm-MR-PHILIPS-16.dcm
103 affim DIMX=256 DIMY=256 filein=irmPhlipsNew1.dcm.raw nbit=16
105 #avec imagette (icone)
107 testWrite icone.dcm r
108 echo "Hopeless till we stop considering the Tag as an identifier inside the Header"
109 echo "The Tag is an identifier inside the *Dicom Dictionnary* only"
110 affim filein=icone.dcm bypassacr=1 dim=512 nbit=16 offset=18240
111 affim filein=icone.dcm dim=64 offset=13984 bypassacr=1
112 affim filein=icone.dcm.raw dim=512 nbit=16
120 #Explicit VR - Little Endian
121 #----------------------------
122 testWrite CT-MONO2-16-brain.dcm r
123 affim filein=CT-MONO2-16-brain.dcm.raw DIMX=512 DIMY=512 nbit=16 signe=o
125 testWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm r
126 affim filein=gdcm-MR-PHILIPS-16-Multi-Seq.dcm.raw DIMX=128 DIMY=128 nbit=16
128 testWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm r
129 affim filein=gdcm-MR-PHILIPS-16-NonRectPix.dcm.raw DIMX=160 DIMY=64 nbit=16
131 testWrite MR-MONO2-8-16x-heart.dcm r
132 affim filein=MR-MONO2-8-16x-heart.dcm.raw DIMX=256 DIMY=256
134 testWrite NM-MONO2-16-13x-heart.dcm r
135 affim filein=NM-MONO2-16-13x-heart.dcm.raw DIMX=64 DIMY=64 nbit=16
136 affim filein=NM-MONO2-16-13x-heart.dcm.raw DIMX=64 DIMY=64 nbit=16 offset=98304
138 testWrite sonataMonaco.dcm r
139 affim filein=sonataMonaco.dcm.raw DIMX=256 DIMY=208 nbit=16
142 testWrite US-MONO2-8-8x-execho.dcm r
143 affim filein=US-MONO2-8-8x-execho.dcm.raw DIMX=128 DIMY=120
144 affim filein=US-MONO2-8-8x-execho.dcm.raw DIMX=128 DIMY=120 offset=92160
148 testWrite US-RGB-8-epicard.dcm r
149 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1"
150 echo " PhotometricInterpretation=RGB"
151 affim filein=US-RGB-8-epicard.dcm.raw dimx=640 dimy=480 nbit=24
153 testWrite US-RGB-8-esopecho.dcm r
154 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0"
155 echo " PhotometricInterpretation=RGB"
156 affim filein=US-RGB-8-esopecho.dcm.raw dimx=256 dimy=120 nbit=24
158 # Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])
159 #--------------------------------------------------------------------------
162 testWrite CT-MONO2-16-chest.dcm r;
163 affim filein=CT-MONO2-16-chest.dcm.raw dimx=512 dimy=400 nbit=16 signe=o
165 testWrite 012345.002.050.dcm r
166 affim filein=012345.002.050.dcm.raw dim=256 nbit=16
168 testWrite gdcm-JPEG-LossLess3a.dcm r;
169 affim filein=gdcm-JPEG-LossLess3a.dcm.raw dim=512 nbit=16
171 testWrite XA-MONO2-8-12x-catheter.dcm r;
172 affim filein=XA-MONO2-8-12x-catheter.dcm.raw dim=512;
173 affim filein=XA-MONO2-8-12x-catheter.dcm.raw dim=512 offset=262144
174 affim filein=XA-MONO2-8-12x-catheter.dcm.raw dim=512 offset=2883584
176 testWrite xa_integris.dcm r;
177 echo "a lot of fragments expected here"
178 affim filein=xa_integris.dcm.raw dim=512
179 affim filein=xa_integris.dcm.raw dim=512 offset=13107200
180 affim filein=xa_integris.dcm.raw dim=512 offset=19660800
182 testWrite 16BitsJpegLosslessGrayScale.dcm r
183 affim filein=16BitsJpegLosslessGrayScale.dcm.raw DIMX=800 DIMY=535 nbit=16
185 #comming from GE dlx via VTServer
186 testWrite I9000001.dcm r
187 affim filein=I9000001.dcm.raw dim=512
188 affim filein=I9000001.dcm.raw dim=512 offset=7864320
190 #JPEG Extended (Process 2 & 4) // 16 bits
191 #-----------------------------
192 testWrite gdcm-JPEG-Extended.dcm r;
193 affim filein=gdcm-JPEG-Extended.dcm.raw dim=512 nbit=16
195 testWrite jpeglossy1.dcm r;
196 affim filein=jpeglossy1.dcm.raw dim=512 nbit=16
198 #JPEG Baseline (Process 14)
199 #--------------------------
200 testWrite MR-MONO2-12-shoulder.dcm r
201 affim filein=MR-MONO2-12-shoulder.dcm.raw DIMX=1024 DIMY=1024 nbit=16
204 #fichier format ecat.
205 #testWrite imageEcat.ecat r
209 #JPEG Baseline (Process 1)
210 #-------------------------
212 testWrite US.1.2.dcm r
213 echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)"
214 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0"
215 echo " PhotometricInterpretation=YBR_FULL_422"
216 affim filein=US.1.2.dcm.raw DIMX=768 DIMY=576 nbit=24
217 affim filein=US.1.2.dcm.raw DIMX=768 DIMY=576 nbit=24 offset=13271040
218 affim filein=US.1.2.dcm.raw DIMX=768 DIMY=576 nbit=24 offset=39813120
221 testWrite CLIP0001-Sequoia-U11.dcm r
222 affim filein=CLIP0001-Sequoia-U11.dcm.raw DIMX=768 DIMY=576 nbit=24
223 affim filein=CLIP0001-Sequoia-U11.dcm.raw DIMX=768 DIMY=576 nbit=24 offset=1327104
224 affim filein=CLIP0001-Sequoia-U11.dcm.raw DIMX=768 DIMY=576 nbit=24 offset=13271040
225 affim filein=CLIP0001-Sequoia-U11.dcm.raw DIMX=768 DIMY=576 nbit=24 offset=26542080
229 testWrite canadaAloka.dcm r
230 echo "expected pixelType=8U SamplesPerPixel=1"
231 echo " PlanarConfiguration=0 PhotometricInterpretation=MONOCHROME2"
232 echo " nb Frames (DIMZ) : 1"
233 affim filein=canadaAloka.dcm.raw DIMX=608 DIMY=420
235 testWrite FMAG0001.dcm r
236 echo "expected pixelType=8U SamplesPerPixel=3"
237 echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL"
238 echo " nb Frames (DIMZ) : 1"
239 affim filein=FMAG0001.dcm.raw DIMX=768 DIMY=576 nbit=24
241 testWrite QMAG0001.dcm r
242 echo "expected pixelType=8U SamplesPerPixel=3"
243 echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL"
244 affim filein=QMAG0001.dcm.raw DIMX=384 DIMY=288 nbit=24;
246 testWrite US-PAL-8-10x-echo.dcm r
247 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0"
248 echo " PhotometricInterpretation=PALETTE COLOR"
249 echo " nb Frames (DIMZ): 10"
250 echo "expected : Parsing 10 'single fragment' Segments"
251 echo " Reading 10 'single fragment' Segments (ouf!)"
252 affim filein=US-PAL-8-10x-echo.dcm.raw DIMX=600 DIMY=430 nbit=24
253 affim filein=US-PAL-8-10x-echo.dcm.raw DIMX=600 DIMY=430 nbit=24 offset=774000
254 affim filein=US-PAL-8-10x-echo.dcm.raw DIMX=600 DIMY=430 nbit=24 offset=1548000
255 affim filein=US-PAL-8-10x-echo.dcm.raw DIMX=600 DIMY=430 nbit=24 offset=6966000
257 testWrite 8BitsRunLengthGrayScale.dcm r
258 echo "expected : correct Gray image"
259 affim filein=8BitsRunLengthGrayScale.dcm.raw DIMX=800 DIMY=535
261 testWrite 8BitsRunLengthColor.dcm r
262 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=2"
263 echo " PhotometricInterpretation=PALETTE COLOR"
264 echo "expected correct color image"
265 affim filein=8BitsRunLengthColor.dcm.raw DIMX=800 DIMY=535 nbit=24
267 #RLE 16 bits --> Try to find some more images
269 testWrite 16BitsRunLengthGrayScale.dcm r
270 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0"
271 echo " PhotometricInterpretation=MONOCHROME2"
272 affim filein=16BitsRunLengthGrayScale.dcm.raw DIMX=800 DIMY=535 nbit=16
274 #Were supposed to be bugged
275 #--------------------------
278 testWrite 00191113.dcm r
279 affim filein=00191113.dcm.raw DIMX=512 DIMY=512
280 affim filein=00191113.dcm.raw DIMX=512 DIMY=512 offset=786432
282 testWrite DermaColorLossLess.dcm r
283 affim filein=DermaColorLossLess.dcm.raw DIMX=117 DIMY=181 nbit=24
285 testWrite RadBWLossLess.dcm r
286 affim filein=RadBWLossLess.dcm.raw DIMX=136 DIMY=92 nbit=16
291 #Rectangular old 24 Bits image
292 testWrite gdcm-RGB-LibIDORect.acr r
293 affim filein=gdcm-RGB-LibIDORect.acr.raw DIMX=400 DIMY=100 nbit=24
295 #MR GE GENESIS_SIGNA Palo Alto
296 testWrite DicomSampleNastyGEImage.dcm r
297 echo "WAS expected : wrong lenth (13) for 0008|103e"
298 affim filein=DicomSampleNastyGEImage.dcm.raw DIMX=256 DIMY=256 nbit=16
300 #MR Philips NTSCAN Hop. Neuro Lyon
301 testWrite philipsMR-lossy.ima r;
302 echo "WAS expected : 'Bogus Huffman table definition' on philipsMR-lossy.ima"
303 echo "IS expected : 'JERR_BAD_HUFF_TABLE sym 16 (>15') but the show goes on"
304 echo "breaks xmedcon"
305 affim filein=philipsMR-lossy.ima.raw dim=512 nbit=16
307 #CT Siemens Hop. Salengro Lille
308 testWrite gdcm-JPEG-LossLess3a.dcm r;
309 echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels";
310 echo "xmedcon says 'error: Unexpected end of file'"
311 affim filein=gdcm-JPEG-LossLess3a.dcm.raw dim=512 nbit=16
312 vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm
314 #CR Philips Thoravision Hop Cardio Lyon
315 testWrite gdcm-JPEG-LossLessThoravision.dcm r
316 echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416"
317 echo "breaks xmedcom, breaks e-film"
318 echo "WAS expected : hashed image -with jLBJpeg-"
319 echo "IS expected : Seg Fault"
320 affim filein=gdcm-JPEG-LossLessThoravision.dcm.raw DIMX=1876 DIMY=2076 nbit=16
322 #MR Picker ST. ANTHONY HOSPITAL
323 testWrite MR.6799.1.dcm r
324 echo "OK; DICOM Image with NO Preamble"
325 affim filein=MR.6799.1.dcm.raw dim=512 nbit=16
327 #Segmented Palette Color LUT Data
328 testWrite gdcm-US-ALOKA-16.dcm r
329 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0"
330 echo " PhotometricInterpretation=PALETTE COLOR"
331 echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account"
332 echo "neither e-film nor DicomWorks deals with the color"
333 echo "breaks xmedcom"
334 echo "breaks vtkgdcmViewer (bad result : 24 bits expected; 16 found in Pixels area)"
335 vtkgdcmViewer gdcm-US-ALOKA-16.dcm
336 affim dimx=640 dimy=480 filein=gdcm-US-ALOKA-16.dcm.raw nbit=16
338 # bugged Siemens 'Leonardo' image
339 testWrite 8078283Leonardo.dcm r
340 affim filein=8078283Leonardo.dcm.raw dim=512 nbit=16
342 #CT McTwin Elscint C.H.R.U LILLE C.HURIEZ
343 testWrite MxTwinLossLess.dcm r
344 affim filein=MxTwinLossLess.dcm.raw DIMX=512 DIMY=512 nbit=16
346 # MRI image from VPRO burned CD
347 testWrite mriThruVPRO.dcm r
348 affim filein=mriThruVPRO.dcm.raw DIMX=256 DIMY=256 nbit=16
349 echo "expected : tasteless SHIT !"
350 echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
352 # gdcm made Theralys image
353 # due to H table, a SeQuence is tagged with 0 length
354 # when using gdcmFile::WriteDcmXXX
355 testWrite fromTheralys.dcm r
356 affim filein=fromTheralys.dcm.raw dim=256 nbit=16