-# Check READ
-# ==========
-#
-# This script :
-# - gdcmreads the images of gdcmData
-# - gdcmwrites the result, with Explicit Value Representation
-# into a '.XDCM' file
-# - tests the result
-# - using creatis' LibIDO/affimdcm (you may drop it)
-# - using mathieu malaterre's vtkgdcmViewer
-# - using Eric Nolf's xmedcon
-# - the full checking should be using e-film,
-# but it doesn't work on Windoz
-#
-#
-# Sebastien Barre's files have no interest here, since the header is
-# a *very clean* ACR-NEMA
-# Our problems come from DICOM V3, with SQ, shadow groups, etc.
-
-# --> EVERYWHERE, with XMEDCOM :
-# --> warning: Incorrect OB value representation (fixed)
-# --> to be fixed in the WRITER ...
-
-#No Swap Info
-#------------
-/home/jpr/JUNK/gdcmbin/bin/Write mr176621.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument mr176621.dcm.XDCM 2; .
-vtkgdcmViewer mr176621.dcm.XDCM; # OK
-xmedcon mr176621.dcm.XDCM; # warning: No transfer syntax found
- # warning: Tag with uneven length
- #
- #breaks because 'DICM" without group 0000
- # Write DCM needs 'CheckFileHeaderConsistency' method
-
-# No Transfert Syntax
-#--------------------
-
-#Big Endian
-
-# ------------------------------------------- BIG SOUCY !!
-affimdcm filein=cr172241.dcm zoom=-4;
-xmedcon cr172241.dcm; # OK
-/home/jpr/JUNK/gdcmbin/bin/Write cr172241.dcm r;
-affim filein=cr172241.dcm.RAW nbit=16 DIMX=1792 DIMY=2392;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr172241.dcm 2; #OK
-# But ... :
-vtkgdcmViewer cr172241.dcm; # breaks (white image) WHITE IMAGE ?!?
- # Doesn't break DaVaW ...
-/home/jpr/JUNK/gdcmbin/bin/Write cr172241.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr172241.dcm.XDCM 2; #OK
-xmedcon cr172241.dcm.XDCM; # OK Incorrect OB value representation (fixed)
-affimdcm filein=cr172241.dcm.XDCM; # OK
-vtkgdcmViewer cr172241.dcm.XDCM; # breaks ?!? White image !
-
-
-vtkgdcmViewer Wrist.pap; # PAPYRUS 3.0 single frame image
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument Wrist.pap 2;
-/home/jpr/JUNK/gdcmbin/bin/Write Wrist.pap x; # OK
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument Wrist.pap.XDCM
-
-
-/home/jpr/JUNK/gdcmbin/bin/Write cr_45031.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument cr_45031.dcm.XDCM 2;
-vtkgdcmViewer cr_45031.dcm.XDCM; #OK
-xmedcon cr_45031.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write CR-MONO1-10-chest.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CR-MONO1-10-chest.dcm.XDCM 2; #OK
-vtkgdcmViewer CR-MONO1-10-chest.dcm.XDCM; #OK
-xmedcon CR-MONO1-10-chest.dcm.XDCM; #OK Incorrect OB value representation (fixed)
-
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-12-lomb-an2.acr2 x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-12-lomb-an2.acr2.XDCM 2; # OK
-vtkgdcmViewer CT-MONO2-12-lomb-an2.acr2.XDCM; #OK
-xmedcon CT-MONO2-12-lomb-an2.acr2.XDCM; #OK Incorrect OB value representation (fixed)
-
-xmedcon gdcm-MR-SIEMENS-16.acr1; # Original OK
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-1.acr; #OK
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-SIEMENS-16-1.acr x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-1.acr.XDCM 2;
-vtkgdcmViewer gdcm-MR-SIEMENS-16-1.acr.XDCM;
-xmedcon gdcm-MR-SIEMENS-16.acr1.XDCM; #breaks error: No images found
-
-xmedcon gdcm-MR-SIEMENS-16.acr2 #original OK
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-SIEMENS-16-2.acr x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-SIEMENS-16-2.acr.XDCM 2;
-vtkgdcmViewer gdcm-MR-SIEMENS-16-2.acr.XDCM; #OK
-xmedcon gdcm-MR-SIEMENS-16.acr2.XDCM; #breaks
- # --> TODO fix group length for odd groups#Feb 03 18:50:24 log[4419]: warning: No transfer syntax found
-#Feb 03 18:50:24 log[4419]: warning: Tag with uneven length
-#Feb 03 18:50:24 log[4419]: error: No images found
-
-/home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-an2.acr2 x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument newACR1000.nema.XDCM 2;
-vtkgdcmViewer MR-MONO2-12-an2.acr2.XDCM;
-xmedcon MR-MONO2-12-an2.acr2.XDCM; # OK warning: Incorrect OB value representation
-
-/home/jpr/JUNK/gdcmbin/bin/Write newACR1000.nema x; # == gdcmMR-SIEMENS-16.acr2
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument newACR1000.nema.XDCM; #OK
-vtkgdcmViewer newACR1000.nema.XDCM; #OK
-xmedcon newACR1000.nema.XDCM; # breaks : no image found
-
-/home/jpr/JUNK/gdcmbin/bin/Write oldACR00001.ima x; # == gdcm-MR-SIEMENS.16.acr1
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument oldACR00001.ima.XDCM; # OK
-vtkgdcmViewer oldACR00001.ima.XDCM; #OK
-xmedcon oldACR00001.ima.XDCM; # breaks : no image found
-
-/home/jpr/JUNK/gdcmbin/bin/Write OT-MONO2-8-a7.dcm x;
-vtkgdcmViewer OT-MONO2-8-a7.dcm.XDCM; #OK
-xmedcon OT-MONO2-8-a7.dcm.XDCM ; #OK
-
-#No Samples Per Pixel
-#--------------------
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-CR-DCMTK-16-NonSamplePerPix.dcm x;
-affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM 2; # OK
-vtkgdcmViewer gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM; #OK
-xmedcon gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM #OK
-
-#Unnormalized Rectangular LibIDO format image
-#--------------------------------------------
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-ACR-LibIDO.acr x;
-vtkgdcmViewer gdcm-ACR-LibIDO.acr.XDCM; # OK
-xmedcon gdcm-ACR-LibIDO.acr.XDCM; #inverts x and y (of course)
-
-#Bits Allocated =12, Bits Stored=12
-#----------------------------------
-#MR Philips (once upon a time in Lyon-Sud)
-/home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-angio-an1.acr1 x;
-vtkgdcmViewer MR-MONO2-12-angio-an1.acr1.XDCM; # shitty image
-xmedcon MR-MONO2-12-angio-an1.acr1.XDCM; # pas mieux : warning: Incorrect PixelData length
-
-#RGB
-#---
-/home/jpr/JUNK/gdcmbin/bin/Write US.3405.1.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
-echo " PhotometricInterpretation=RGB";
-vtkgdcmViewer US.3405.1.dcm.XDCM; #OK
-xmedcon US.3405.1.dcm.XDCM; #OK
-
-# ------------------------------------------- KING SIZE SOUCY !!
-
-/home/jpr/JUNK/gdcmbin/bin/Write OT-PAL-8-face.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
-echo " PhotometricInterpretation=PALETTE COLOR";
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocumentOT-PAL-8-face.dcm.XDCM; OK
-affimdcm filein=OT-PAL-8-face.dcm.XDCM; #OK
-vtkgdcmViewer OT-PAL-8-face.dcm.XDCM; # seg fault .!?
-xmedcon OT-PAL-8-face.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write 8BitsUncompressedColor.dcm x;
-vtkgdcmViewer 8BitsUncompressedColor.dcm.XDCM; # seg fault .!?
-xmedcon 8BitsUncompressedColor.dcm.XDCM ; #OK
-
-# Implicit VR - Little Endian
-#-----------------------------
-
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-ankle.dcm x;
- xmedcon CT-MONO2-16-ankle.dcm.XDCM; #ok
- vtkgdcmViewer CT-MONO2-16-ankle.dcm.XDCM; #ok
- /home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-16-ankle.dcm 2; #ok
-
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-ort.dcm x;
-vtkgdcmViewer CT-MONO2-16-ort.dcm.XDCM; #OK
-xmedcon CT-MONO2-16-ort.dcm.XDCM; #OK
-
-
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-8-abdo.dcm x;
-vtkgdcmViewer CT-MONO2-8-abdo.dcm.XDCM; #OK
-xmedcon CT-MONO2-8-abdo.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16.dcm.XDCM 2; #OK
-vtkgdcmViewer gdcm-MR-PHILIPS-16.dcm.XDCM; # OK
-xmedcon gdcm-MR-PHILIPS-16.dcm.XDCM; # error: No images found
-xmedcon gdcm-MR-PHILIPS-16.dcm; # OK with original image
-
-/home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-16-head.dcm x;
-vtkgdcmViewer MR-MONO2-16-head.dcm.XDCM; #OK
-xmedcon MR-MONO2-16-head.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write multiframe1Integris.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument CT-MONO2-8-abdo.dcm.XDCM 2; #OK
-vtkgdcmViewer multiframe1Integris.dcm.XDCM; #OK
-xmedcon multiframe1Integris.dcm.XDCM; #breaks No images found
-xmedcon multiframe1Integris.dcm;
-
-/home/jpr/JUNK/gdcmbin/bin/Write multiframe2GE.dcm x;
-vtkgdcmViewer multiframe2GE.dcm.XDCM; #OK
-#breaks xmedcon
-xmedcon multiframe2GE.dcm.XDCM; #breaks No images found
-
-vtkgdcmViewer irmPhlipsNew1.dcm;
-/home/jpr/JUNK/gdcmbin/bin/Write irmPhlipsNew1.dcm x; # == gdcm-MR-PHILIPS-16.dcm
-vtkgdcmViewer irmPhlipsNew1.dcm.XDCM; #OK
-xmedcon irmPhlipsNew1.dcm.XDCM; #breaks : No images found
-
-#avec imagette (icone)
-
-vtkgdcmViewer icone.dcm; #OK
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument icone.dcm 2 | grep fffe;
-echo "so many 0xfffe ! (274)"
-
-/home/jpr/JUNK/gdcmbin/bin/Write icone.dcm x;
-xmedcon icone.dcm; #original image OK
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument icone.dcm.XDCM 2;
-#/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument OK; vtkgdcmViewer OK; breaks xmedcom
-vtkgdcmViewer icone.dcm.XDCM; # shitty image --> TODO : FIX (once again)icon pb
-xmedcon icone.dcm.XDCM; #breaks
-
-#Palette
-
-# ???
-# 8 Bits ?
-# 16 Bits ?
-
-#Explicit VR - Little Endian
-#----------------------------
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-brain.dcm x;
-vtkgdcmViewer CT-MONO2-16-brain.dcm.XDCM; #OK
-xmedcon CT-MONO2-16-brain.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2;
-xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm #OK :Skip PHILIPS premature item bug
-vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm; #OK
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16-Multi-Seq.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM 2; #pixel group missing??!?
-#vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM; #shitty image, ofcourse
-xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM; # works ?!?
-vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM;
-
-
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-MR-PHILIPS-16-NonRectPix.dcm x;
-vtkgdcmViewer gdcm-MR-PHILIPS-16-NonRectPix.dcm.XDCM; #OK
-xmedcon gdcm-MR-PHILIPS-16-NonRectPix.dcm.XDCM; #OK warning: Incorrect sequence length
-
-/home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-8-16x-heart.dcm x; #multiframe # equals to ???
-vtkgdcmViewer MR-MONO2-8-16x-heart.dcm.XDCM; #OK
-xmedcon MR-MONO2-8-16x-heart.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write NM-MONO2-16-13x-heart.dcm x; #multiframe
-vtkgdcmViewer NM-MONO2-16-13x-heart.dcm.XDCM; #OK
-xmedcon NM-MONO2-16-13x-heart.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write sonataMonaco.dcm x;
-vtkgdcmViewer sonataMonaco.dcm.XDCM; #OK
-xmedcon sonataMonaco.dcm.XDCM; #OK
-
-#MultiFrame
-/home/jpr/JUNK/gdcmbin/bin/Write US-MONO2-8-8x-execho.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument US-MONO2-8-8x-execho.dcm.XDCM;
-vtkgdcmViewer US-MONO2-8-8x-execho.dcm.XDCM; # OK
-xmedcon US-MONO2-8-8x-execho.dcm.XDCM; #OK
-
-#RGB
-
-/home/jpr/JUNK/gdcmbin/bin/Write US-RGB-8-epicard.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
-echo " PhotometricInterpretation=RGB";
-vtkgdcmViewer US-RGB-8-epicard.dcm.XDCM; #OK
-xmedcon US-RGB-8-epicard.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write US-RGB-8-esopecho.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
-echo " PhotometricInterpretation=RGB",
-xmedcon US-RGB-8-esopecho.dcm.XDCM; #OK
-
-# Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])
-#--------------------------------------------------------------------------
-# (JPEG Lossless)
-
-/home/jpr/JUNK/gdcmbin/bin/Write CT-MONO2-16-chest.dcm x;
-vtkgdcmViewer CT-MONO2-16-chest.dcm.XDCM; #OK
-xmedcon CT-MONO2-16-chest.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write 012345.002.050.dcm x;
-vtkgdcmViewer 012345.002.050.dcm.XDCM; #OK
-xmedcon 012345.002.050.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLess3a.dcm x;
-vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm.XDCM ; #OK
-xmedcon gdcm-JPEG-LossLess3a.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write XA-MONO2-8-12x-catheter.dcm x;
-vtkgdcmViewer XA-MONO2-8-12x-catheter.dcm.XDCM; #OK
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument XA-MONO2-8-12x-catheter.dcm.XDCM 2;
-xmedcon XA-MONO2-8-12x-catheter.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write xa_integris.dcm x;
-echo "a lot of fragments expected here";
-vtkgdcmViewer xa_integris.dcm.XDCM #OK
-xmedcon xa_integris.dcm.XDCM #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write 16BitsJpegLosslessGrayScale.dcm x;
-vtkgdcmViewer 16BitsJpegLosslessGrayScale.dcm.XDCM #OK
-xmedcon 16BitsJpegLosslessGrayScale.dcm.XDCM #OK
-
-#comming from GE dlx via VTServer
-vtkgdcmViewer I9000001.dcm;
-/home/jpr/JUNK/gdcmbin/bin/Write I9000001.dcm x;
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument I9000001.dcm.XDCM 2; # pixel group NOT FOUND ??!??
-#black image
-vtkgdcmViewer I9000001.dcm.XDCM;
-#no image found
-xmedcon I9000001.dcm.XDCM;
-
-#JPEG Extended (Process 2 & 4) // 16 bits
-#-----------------------------
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-Extended.dcm x;
-vtkgdcmViewer gdcm-JPEG-Extended.dcm.XDCM; #OK
-xmedcon gdcm-JPEG-Extended.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write jpeglossy1.dcm x;
-vtkgdcmViewer jpeglossy1.dcm.XDCM #OK
-xmedcon jpeglossy1.dcm.XDCM #OK
-
-#JPEG Baseline (Process 14)
-#--------------------------
-/home/jpr/JUNK/gdcmbin/bin/Write MR-MONO2-12-shoulder.dcm x;
-vtkgdcmViewer MR-MONO2-12-shoulder.dcm.XDCM; #OK
-xmedcon MR-MONO2-12-shoulder.dcm.XDCM; #OK
-
-
-#fichier format ecat.
-#/home/jpr/JUNK/gdcmbin/bin/Write imageEcat.ecat r
-
-#JPEG Lossy 8 bits
-#=================
-#JPEG Baseline (Process 1)
-#-------------------------
-# Bracco Files
-/home/jpr/JUNK/gdcmbin/bin/Write US.1.2.dcm x;
-echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)";
-echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
-echo " PhotometricInterpretation=YBR_FULL_422";
-vtkgdcmViewer US.1.2.dcm.XDCM; #OK
-xmedcon US.1.2.dcm.XDCM; #OK
-
-#Sequoia Acusson U11
-/home/jpr/JUNK/gdcmbin/bin/Write CLIP0001-Sequoia-U11.dcm x;
-vtkgdcmViewer CLIP0001-Sequoia-U11.dcm.XDCM; #OK
-xmedcon CLIP0001-Sequoia-U11.dcm.XDCM; #OK
-
-#RLE Lossless
-#-------------
-/home/jpr/JUNK/gdcmbin/bin/Write canadaAloka.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=1";
-echo " PlanarConfiguration=0 PhotometricInterpretation=MONOCHROME2";
-echo " nb Frames (DIMZ) : 1";
-vtkgdcmViewer canadaAloka.dcm.XDCM; # OK
-xmedcon canadaAloka.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write jpeglossy1.dcm x; # equal to ???
-vtkgdcmViewer jpeglossy1.dcm.XDCM; #OK
-xmedcon jpeglossy1.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write FMAG0001.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=3";
-echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
-echo " nb Frames (DIMZ) : 1";
-vtkgdcmViewer FMAG0001.dcm.XDCM; #OK
-xmedcon FMAG0001.dcm.XDCM; #OK
-
-vtkgdcmViewer QMAG0001.dcm; #OK
-xmedcon QMAG0001.dcm; #original breaks xmedcon
- #warning: Unknown PhotometricInterpretation
-/home/jpr/JUNK/gdcmbin/bin/Write QMAG0001.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=3";
-echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
-vtkgdcmViewer QMAG0001.dcm.XDCM; #OK
-xmedcon QMAG0001.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write US-PAL-8-10x-echo.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
-echo " PhotometricInterpretation=PALETTE COLOR";
-echo " nb Frames (DIMZ): 10";
-echo "expected : Parsing 10 'single fragment' Segments";
-echo " Reading 10 'single fragment' Segments (ouf!)";
-vtkgdcmViewer US-PAL-8-10x-echo.dcm.XDCM; # SEG FAULT
-xmedcon US-PAL-8-10x-echo.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write 8BitsRunLengthGrayScale.dcm x;
-echo "expected : correct Gray image";
-vtkgdcmViewer 8BitsRunLengthGrayScale.dcm.XDCM; #OK
-xmedcon 8BitsRunLengthGrayScale.dcm.XDCM; #OK
-
-/home/jpr/JUNK/gdcmbin/bin/Write 8BitsRunLengthColor.dcm x;
-echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=2";
-echo " PhotometricInterpretation=PALETTE COLOR";
-vtkgdcmViewer 8BitsRunLengthColor.dcm.XDCM; # SEG FAULT
-echo "WAS expected correct color image";
-xmedcon 8BitsRunLengthColor.dcm.XDCM; #OK
-
-#RLE 16 bits --> Try to find some more images
-
-/home/jpr/JUNK/gdcmbin/bin/Write 16BitsRunLengthGrayScale.dcm x;
-echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0";
-echo " PhotometricInterpretation=MONOCHROME2";
-vtkgdcmViewer 16BitsRunLengthGrayScale.dcm.XDCM;
-xmedcon 16BitsRunLengthGrayScale.dcm.XDCM; #OK
-
-#Were supposed to be bugged
-#--------------------------
-#(break xmedcon)
-xmedcon 00191113.dcm; #No images found
-/home/jpr/JUNK/gdcmbin/bin/Write 00191113.dcm x;
-vtkgdcmViewer 00191113.dcm.XDCM; #OK
-xmedcon 00191113.dcm.XDCM; #OK
-
-xmedcon DermaColorLossLess.dcm; #breaks xmedcon : No images found
-/home/jpr/JUNK/gdcmbin/bin/Write DermaColorLossLess.dcm x;
-xmedcon DermaColorLossLess.dcm.XDCM; #breaks xmedcon
-#Feb 02 19:33:16 log[2619]: warning: Tag with uneven length
-#Feb 02 19:33:16 log[2619]: warning: No transfer syntax found
-#Feb 02 19:33:16 log[2619]: error: No images found
-vtkgdcmViewer DermaColorLossLess.dcm.XDCM #OK
-
-#Original breaks xmedcon, affimdcm complian ?!
-affimdcm filein=RadBWLossLess.dcm; #OK
-vtkgdcmViewer RadBWLossLess.dcm; #OK
-xmedcon RadBWLossLess.dcm; # breaks :error: No images found
-/home/jpr/JUNK/gdcmbin/bin/Write RadBWLossLess.dcm x;
-vtkgdcmViewer RadBWLossLess.dcm.XDCM; #OK
-xmedcon RadBWLossLess.dcm.XDCM; #error: No images found
-
-#Known as BUGGED !
-#----------------
-
-#Rectangular old 24 Bits image
-vtkgdcmViewer gdcm-RGB-LibIDORect.acr; # OK
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-RGB-LibIDORect.acr x;
-vtkgdcmViewer gdcm-RGB-LibIDORect.acr.XDCM;
-xmedcon gdcm-RGB-LibIDORect.acr.XDCM; # breaks : large Bit Allocated (24)
-#TODO transform '24 bit images' into 8 bits + samples per pixel = 3
-
-#MR GE GENESIS_SIGNA Palo Alto
-/home/jpr/JUNK/gdcmbin/bin/Write DicomSampleNastyGEImage.dcm x;
-echo " expected : warning uneven length (13) for 0008|103e";
-vtkgdcmViewer DicomSampleNastyGEImage.dcm.XDCM; #OK
-xmedcon DicomSampleNastyGEImage.dcm.XDCM; #OK
-
-#MR Philips NTSCAN Hop. Neuro Lyon
-/home/jpr/JUNK/gdcmbin/bin/gdcmTests PrintDocument philipsMR-lossy.ima #OK
-xmedcon philipsMR-lossy.ima; #original breaks xmedcon
-vtkgdcmViewer philipsMR-lossy.ima; #Original OK
-/home/jpr/JUNK/gdcmbin/bin/Write philipsMR-lossy.ima x;
-echo "WAS expected : 'Bogus Huffman table definition' on philipsMR-lossy.ima";
-echo "IS expected : 'JERR_BAD_HUFF_TABLE sym 16 (>15)' but the show goes on";
-vtkgdcmViewer philipsMR-lossy.ima.XDCM; # BLACK IMAGE
-xmedcon philipsMR-lossy.ima.XDCM; #OK
-
-#CT Siemens Hop. Salengro Lille
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLess3a.dcm x;
-echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels";
-echo "xmedcon says 'error: Unexpected end of file'";
-vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm.XDCM; #OK; needs 'R' for display
-xmedcon gdcm-JPEG-LossLess3a.dcm.XDCM; #OK
-
-#CR Philips Thoravision Hop Cardio Lyon
-affimdcm filein=gdcm-JPEG-LossLessThoravision.dcm; # OK, wrong image as usual
-xmedcon gdcm-JPEG-LossLessThoravision.dcm; #original seg faults xmedcon
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-JPEG-LossLessThoravision.dcm x; #breaks ;
-echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416";
-echo "breaks xmedcom, breaks e-film";
-echo "WAS expected : hashed image -with jLBJpeg-";
-echo "IS expected : Seg Fault";
-xmedcon gdcm-JPEG-LossLessThoravision.dcm.XDCM; # NOT CHECKED
-
-#MR Picker ST. ANTHONY HOSPITAL
-/home/jpr/JUNK/gdcmbin/bin/Write MR.6799.1.dcm x; #equal to ???
-echo "OK; DICOM Image with NO Preamble";
-vtkgdcmViewer MR.6799.1.dcm.XDCM; #OK
-xmedcon MR.6799.1.dcm.XDCM; #OK
-
-#Segmented Palette Color LUT Data
-xmedcon gdcm-US-ALOKA-16.dcm; #breaks # Missing CLUT
-vtkgdcmViewer gdcm-US-ALOKA-16.dcm3; #OK
-/home/jpr/JUNK/gdcmbin/bin/Write gdcm-US-ALOKA-16.dcm x;
-echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0";
-echo " PhotometricInterpretation=PALETTE COLOR";
-echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account";
-echo "neither e-film nor DicomWorks deals with the color"
-echo "breaks xmedcom";
-echo "breaks vtkgdcmViewer (bad result : 24 bits expected; 16 found in Pixels area)";
-vtkgdcmViewer gdcm-US-ALOKA-16.dcm.XDCM; #OK
-xmedcon gdcm-US-ALOKA-16.dcm.XDCM; #breaks
-#Feb 03 13:40:19 log[26999]: error: Missing CLUT
-#Feb 03 13:40:19 log[26999]: error: No images found
-
-# bugged Siemens 'Leonardo' image
-/home/jpr/JUNK/gdcmbin/bin/Write 8078283Leonardo.dcm x;
-xmedcon 8078283Leonardo.dcm.XDCM; #OK
-
-#CT McTwin Elscint C.H.R.U LILLE C.HURIEZ
- xmedcon MxTwinLossLess.dcm; #breaks No images found
- vtkgdcmViewer MxTwinLossLess.dcm; #OK
- /home/jpr/JUNK/gdcmbin/bin/Write MxTwinLossLess.dcm x;
- vtkgdcmViewer MxTwinLossLess.dcm.XDCM; #OK
- xmedcon MxTwinLossLess.dcm.XDCM #breaks
-
-# MRI image from VPRO burned CD
-vtkgdcmViewer mriThruVPRO.dcm; # Tasteless SHIT
-xmedcon mriThruVPRO.dcm; # pas mieux
-/home/jpr/JUNK/gdcmbin/bin/Write mriThruVPRO.dcm x;
-vtkgdcmViewer mriThruVPRO.dcm.XDCM;
-echo "expected : tasteless SHIT !"
-echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
-
-# gdcm made Theralys image
-# due to H table, a SeQuence is tagged with 0 length
-# when using gdcmFile::WriteDcmXXX
-xmedcon fromTheralys.dcm; # Original breaks xmedcon
-/home/jpr/JUNK/gdcmbin/bin/Write fromTheralys.dcm x;
-vtkgdcmViewer fromTheralys.dcm.XDCM; # OK
-xmedcon fromTheralys.dcm.XDCM; # OK