6 # - gdcmreads the images of gdcmData
7 # - fwrite the pixels (an nothing more), into a '.RAW' file
8 # - affim them (you may replace affim by any 'Raw File' viewer)
10 # just to verify the ability of gdcm to 'extract' the pixels
15 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite mr176621.dcm r;
16 affim filein=mr176621.dcm.RAW DIMX=512 DIMY=512 nbit=16
21 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite cr172241.dcm r;
22 affim filein=cr172241.dcm.RAW DIMX=1792 DIMY=2392 nbit=16 zoom=-4
23 #0008,0200 (image location) wrongly stored
24 #0028,3006 (LUT Data) has a CTX VR
26 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite cr_45031.dcm r;
27 affim filein=cr_45031.dcm.RAW DIMX=1670 DIMY=2010 nbit=16 zoom=-4
29 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CR-MONO1-10-chest.dcm r;
30 affim filein=CR-MONO1-10-chest.dcm.RAW DIMX=440 DIMY=440 nbit=16
32 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-12-lomb-an2.acr r;
33 affim filein=CT-MONO2-12-lomb-an2.acr2.RAW DIM=512 nbit=16
35 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-MR-SIEMENS-16-1.acr r;
36 affim filein=gdcm-MR-SIEMENS-16-1.acr.RAW DIMX=256 DIMY=256 nbit=16
38 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-MR-SIEMENS-16-2.acr r;
39 affim filein=gdcm-MR-SIEMENS-16-2.acr.RAW DIMX=512 DIMY=512 nbit=16
41 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR-MONO2-12-an2.acr r;
42 affim filein=MR-MONO2-12-an2.acr.RAW DIMX=256 DIMY=256 nbit=16
44 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite newACR1000.nema r; # == gdcmMR-SIEMENS-16.acr2
45 affim filein=newACR1000.nema.RAW DIMX=512 DIMY=512 nbit=16
47 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite OT-MONO2-8-a7.dcm r;
48 affim filein=OT-MONO2-8-a7.dcm.RAW DIMX=512 DIMY=512
52 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm r;
53 affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.RAW dim=750 nbit=8
55 #Unnormalized Rectangular LibIDO format image
56 #--------------------------------------------
57 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-ACR-LibIDO.acr r;
58 affim filein=gdcm-ACR-LibIDO.acr.RAW dimx=512 dimy=301
60 #Bits Allocated =12, Bits Stored=12
61 #----------------------------------
62 #MR Philips (once upon a time in Lyon-Sud)
63 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR-MONO2-12-angio-an1.acr1 r;
64 affim filein=MR-MONO2-12-angio-an1.acr1.RAW dim=256 nbit=16
69 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite OT-PAL-8-face.dcm r;
70 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1"
71 echo " PhotometricInterpretation=PALETTE COLOR"
72 affim filein=OT-PAL-8-face.dcm.RAW dimx=640 dimy=480 nbit=24
74 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite 8BitsUncompressedColor.dcm r;
75 affim filein=8BitsUncompressedColor.dcm.RAW dimx=800 dimy=535 nbit=24
77 # Implicit VR - Little Endian
78 #-----------------------------
80 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-16-ankle.dcm r;
81 affim filein=CT-MONO2-16-ankle.dcm.RAW DIMX=512 DIMY=512 nbit=16 signe=o
83 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-16-ort.dcm r;
84 affim filein=CT-MONO2-16-ort.dcm.RAW DIMX=512 DIMY=512 nbit=16 signe=o
86 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-8-abdo.dcm r;
87 affim filein=CT-MONO2-8-abdo.dcm.RAW DIMX=512 DIMY=512
89 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR-MONO2-16-head.dcm r;
90 affim filein=MR-MONO2-16-head.dcm.RAW dim=256 nbit=16 signe=o
92 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite multiframe1Integris.dcm r;
93 affim filein=multiframe1Integris.dcm.RAW dim=1024 nbit=16 zoom=-2
94 affim filein=multiframe1Integris.dcm.RAW dim=1024 nbit=16 offset=31457280 zoom=-2
96 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite multiframe2GE.dcm r;
97 affim filein=multiframe2GE.dcm.RAW dim=512
98 affim filein=multiframe2GE.dcm.RAW dim=512 offset=14417920
100 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite irmPhlipsNew1.dcm r; # == gdcm-MR-PHILIPS-16.dcm
101 affim DIMX=256 DIMY=256 filein=irmPhlipsNew1.dcm.RAW nbit=16
103 #avec imagette (icone)
105 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite icone.dcm r;
106 affim filein=icone.dcm bypassacr=1 dim=512 nbit=16 offset=18240
107 affim filein=icone.dcm dim=64 offset=13984 bypassacr=1
108 affim filein=icone.dcm.RAW dim=512 nbit=16
116 #Explicit VR - Little Endian
117 #----------------------------
118 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-16-brain.dcm r;
119 affim filein=CT-MONO2-16-brain.dcm.RAW DIMX=512 DIMY=512 nbit=16 signe=o
121 # 7 'first level' SeQuences , 140 'second level' SeQuences ?!?
122 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm r;
123 affim filein=gdcm-MR-PHILIPS-16-Multi-Seq.dcm.RAW DIMX=128 DIMY=128 nbit=16
124 PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2
126 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm r;
127 affim filein=gdcm-MR-PHILIPS-16-NonRectPix.dcm.RAW DIMX=160 DIMY=64 nbit=16
129 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR-MONO2-8-16x-heart.dcm r;
130 affim filein=MR-MONO2-8-16x-heart.dcm.RAW DIMX=256 DIMY=256
132 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite NM-MONO2-16-13x-heart.dcm r;
133 affim filein=NM-MONO2-16-13x-heart.dcm.RAW DIMX=64 DIMY=64 nbit=16
134 affim filein=NM-MONO2-16-13x-heart.dcm.RAW DIMX=64 DIMY=64 nbit=16 offset=98304
136 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite sonataMonaco.dcm r;
137 affim filein=sonataMonaco.dcm.RAW DIMX=256 DIMY=208 nbit=16
140 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite US-MONO2-8-8x-execho.dcm r;
141 affim filein=US-MONO2-8-8x-execho.dcm.RAW DIMX=128 DIMY=120
142 affim filein=US-MONO2-8-8x-execho.dcm.RAW DIMX=128 DIMY=120 offset=92160
146 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite US-RGB-8-epicard.dcm r;
147 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1"
148 echo " PhotometricInterpretation=RGB"
149 affim filein=US-RGB-8-epicard.dcm.RAW dimx=640 dimy=480 nbit=24
151 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite US-RGB-8-esopecho.dcm r;
152 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0"
153 echo " PhotometricInterpretation=RGB"
154 affim filein=US-RGB-8-esopecho.dcm.RAW dimx=256 dimy=120 nbit=24
156 # Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])
157 #--------------------------------------------------------------------------
160 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CT-MONO2-16-chest.dcm r;
161 affim filein=CT-MONO2-16-chest.dcm.RAW dimx=512 dimy=400 nbit=16 signe=o
163 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite 012345.002.050.dcm r;
164 affim filein=012345.002.050.dcm.RAW dim=256 nbit=16
166 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-JPEG-LossLess3a.dcm r; # -- bug in JPEG fragments
167 affim filein=gdcm-JPEG-LossLess3a.dcm.RAW dim=512 nbit=16
169 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite XA-MONO2-8-12x-catheter.dcm r;
170 affim filein=XA-MONO2-8-12x-catheter.dcm.RAW dim=512;
171 affim filein=XA-MONO2-8-12x-catheter.dcm.RAW dim=512 offset=262144
172 affim filein=XA-MONO2-8-12x-catheter.dcm.RAW dim=512 offset=2883584
174 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite xa_integris.dcm r;
175 echo "a lot of fragments expected here"
176 affim filein=xa_integris.dcm.RAW dim=512
177 affim filein=xa_integris.dcm.RAW dim=512 offset=13107200
178 affim filein=xa_integris.dcm.RAW dim=512 offset=19660800
180 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite 16BitsJpegLosslessGrayScale.dcm r;
181 affim filein=16BitsJpegLosslessGrayScale.dcm.RAW DIMX=800 DIMY=535 nbit=16
183 #comming from GE dlx via VTServer
184 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite I9000001.dcm r;
185 affim filein=I9000001.dcm.RAW dim=512
186 affim filein=I9000001.dcm.RAW dim=512 offset=7864320
188 #JPEG Extended (Process 2 & 4) // 16 bits
189 #-----------------------------
190 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-JPEG-Extended.dcm r;
191 affim filein=gdcm-JPEG-Extended.dcm.RAW dim=512 nbit=16
193 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite jpeglossy1.dcm r;
194 affim filein=jpeglossy1.dcm.RAW dim=512 nbit=16
196 #JPEG Baseline (Process 14)
197 #--------------------------
198 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR-MONO2-12-shoulder.dcm r;
199 affim filein=MR-MONO2-12-shoulder.dcm.RAW DIMX=1024 DIMY=1024 nbit=16
202 #fichier format ecat.
203 #/home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite imageEcat.ecat r
207 #JPEG Baseline (Process 1)
208 #-------------------------
210 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite US.1.2.dcm r;
211 echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)"
212 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0"
213 echo " PhotometricInterpretation=YBR_FULL_422"
214 affim filein=US.1.2.dcm.RAW DIMX=768 DIMY=576 nbit=24
215 affim filein=US.1.2.dcm.RAW DIMX=768 DIMY=576 nbit=24 offset=13271040
216 affim filein=US.1.2.dcm.RAW DIMX=768 DIMY=576 nbit=24 offset=39813120
219 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite CLIP0001-Sequoia-U11.dcm r;
220 echo "Troubles with 0018|6022[SL][Reference Pixel Y(0)] [4294967177] x(7fffffff)"
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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite 8BitsRunLengthGrayScale.dcm r;
258 echo "expected : correct Gray image"
259 affim filein=8BitsRunLengthGrayScale.dcm.RAW DIMX=800 DIMY=535
261 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests 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 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite DermaColorLossLess.dcm r;
283 affim filein=DermaColorLossLess.dcm.RAW DIMX=117 DIMY=181 nbit=24
285 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite RadBWLossLess.dcm r;
286 affim filein=RadBWLossLess.dcm.RAW DIMX=136 DIMY=92 nbit=16
288 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite Wrist.pap r
289 affim filein=Wrist.pap.RAW nbit=16 dimx=720 dimy=360
294 #Rectangular old 24 Bits image
295 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-RGB-LibIDORect.acr r;
296 affim filein=gdcm-RGB-LibIDORect.acr.RAW DIMX=400 DIMY=100 nbit=24
298 #MR GE GENESIS_SIGNA Palo Alto
299 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite DicomSampleNastyGEImage.dcm r;
300 echo "WAS expected : wrong lenth (13) for 0008|103e"
301 affim filein=DicomSampleNastyGEImage.dcm.RAW DIMX=256 DIMY=256 nbit=16
303 #MR Philips NTSCAN Hop. Neuro Lyon
304 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite philipsMR-lossy.ima r;
305 echo "WAS expected : 'Bogus Huffman table definition' on philipsMR-lossy.ima"
306 echo "IS expected : 'JERR_BAD_HUFF_TABLE sym 16 (>15)' but the show goes on"
307 echo "breaks xmedcon"
308 affim filein=philipsMR-lossy.ima.RAW dim=512 nbit=16
310 #CT Siemens Hop. Salengro Lille
311 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-JPEG-LossLess3a.dcm r;
312 echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels";
313 echo "xmedcon says 'error: Unexpected end of file'"
314 affim filein=gdcm-JPEG-LossLess3a.dcm.RAW dim=512 nbit=16
315 vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm
317 #CR Philips Thoravision Hop Cardio Lyon
318 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-JPEG-LossLessThoravision.dcm r;
319 echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416"
320 echo "breaks xmedcom, breaks e-film"
321 echo "WAS expected : hashed image -with jLBJpeg-"
322 echo "IS expected : Seg Fault"
323 affim filein=gdcm-JPEG-LossLessThoravision.dcm.RAW DIMX=1876 DIMY=2076 nbit=16
325 #MR Picker ST. ANTHONY HOSPITAL
326 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MR.6799.1.dcm r;
327 echo "OK; DICOM Image with NO Preamble"
328 affim filein=MR.6799.1.dcm.RAW dim=512 nbit=16
330 #Segmented Palette Color LUT Data
331 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite gdcm-US-ALOKA-16.dcm r;
332 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0"
333 echo " PhotometricInterpretation=PALETTE COLOR"
334 echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account"
335 echo "neither e-film nor DicomWorks deals with the color"
336 echo "breaks xmedcom"
337 echo "breaks vtkgdcmViewer (bad result : 24 bits expected; 16 found in Pixels area)"
338 vtkgdcmViewer gdcm-US-ALOKA-16.dcm
339 affim dimx=640 dimy=480 filein=gdcm-US-ALOKA-16.dcm.RAW nbit=16
341 # bugged Siemens 'Leonardo' image
342 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite 8078283Leonardo.dcm r;
343 affim filein=8078283Leonardo.dcm.RAW dim=512 nbit=16
345 #CT McTwin Elscint C.H.R.U LILLE C.HURIEZ
346 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite MxTwinLossLess.dcm r;
347 affim filein=MxTwinLossLess.dcm.RAW DIMX=512 DIMY=512 nbit=16
349 # MRI image from VPRO burned CD
350 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite mriThruVPRO.dcm r;
351 affim filein=mriThruVPRO.dcm.RAW DIMX=256 DIMY=256 nbit=16
352 echo "expected : tasteless SHIT !"
353 echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
355 # gdcm made Theralys image
356 # due to H table, a SeQuence is tagged with 0 length
357 # when using gdcmFile::WriteDcmXXX
358 /home/jpr/JUNK/gdcmbin/bin/gdcmTests TestWrite fromTheralys.dcm r;
359 affim filein=fromTheralys.dcm.RAW dim=256 nbit=16