]> Creatis software - gdcmData.git/blobdiff - checkWriteImplicit.sh
Add image descr
[gdcmData.git] / checkWriteImplicit.sh
index 4ca29d8cf00b5f4bb7b65b38f235394d5465db34..e67456d2082dbdb952a1ea97cacff6e981a54ffa 100644 (file)
 
 #No Swap Info
 #------------
-testWrite mr176621.dcm d;
+gdcmCxxTests testWrite mr176621.dcm d;
 #gdcmParser::CheckSwap: ACR/NEMA unfound swap info (time to raise bets)
-PrintHeader mr176621.dcm.DCM 2;  . 
-v mr176621.dcm.DCM; #OK
+gdcmCxxTests gdcmCxxTests PrintHeader mr176621.dcm.DCM 2;  . 
+vtkgdcmViewer mr176621.dcm.DCM; #OK
 xmedcon mr176621.dcm.DCM; #OK
 
 # No Transfert Syntax
 #--------------------
 
 #Big Endian
-testWrite cr172241.dcm r;                                  # Big Soucy !!
+gdcmCxxTests testWrite cr172241.dcm r;                                  # Big Soucy !!
 affim filein=cr172241.dcm.RAW nbit=16  DIMX=1792 DIMY=2392;  #OK
-PrintHeader cr172241.dcm 2;  #OK
-v cr172241.dcm;   # breaks (white image)   WHITE IMAGE ?!? 
+gdcmCxxTests gdcmCxxTests PrintHeader cr172241.dcm 2;  #OK
+vtkgdcmViewer cr172241.dcm;   # breaks (white image)   WHITE IMAGE ?!? 
 xmedcon cr172241.dcm;  # OK
 #--
-testWrite cr172241.dcm d;
-PrintHeader cr172241.dcm.DCM 2; #OK
-v cr172241.dcm.DCM;       # breaks ?!?
+gdcmCxxTests testWrite cr172241.dcm d;
+gdcmCxxTests PrintHeader cr172241.dcm.DCM 2; #OK
+vtkgdcmViewer cr172241.dcm.DCM;       # breaks ?!?
 xmedcon cr172241.dcm.DCM;  # OK
 
-testWrite cr_45031.dcm d;                                   
-v cr_45031.dcm.DCM; #OK
+gdcmCxxTests testWrite cr_45031.dcm d;                                   
+vtkgdcmViewer cr_45031.dcm.DCM; #OK
 xmedcon  cr_45031.dcm.DCM;   #OK
  
-testWrite CR-MONO1-10-chest.dcm d;
-PrintHeader CR-MONO1-10-chest.dcm.DCM 2; #OK
+gdcmCxxTests testWrite CR-MONO1-10-chest.dcm d;
+gdcmCxxTests PrintHeader CR-MONO1-10-chest.dcm.DCM 2; #OK
 xmedcon CR-MONO1-10-chest.dcm.DCM; #OK
 
-testWrite CT-MONO2-12-lomb-an2.acr2 d;
-PrintHeader CT-MONO2-12-lomb-an2.acr2.DCM 2; # OK
-v CT-MONO2-12-lomb-an2.acr2.DCM; #OK
+gdcmCxxTests testWrite CT-MONO2-12-lomb-an2.acr2 d;
+gdcmCxxTests PrintHeader CT-MONO2-12-lomb-an2.acr2.DCM 2; # OK
+vtkgdcmViewer CT-MONO2-12-lomb-an2.acr2.DCM; #OK
 xmedcon CT-MONO2-12-lomb-an2.acr2.DCM; #OK
 
-PrintHeader gdcm-MR-SIEMENS-16.acr1; #OK
-testWrite gdcm-MR-SIEMENS-16.acr1 d;
-PrintHeader gdcm-MR-SIEMENS-16.acr1.DCM 2 ; 
-v  gdcm-MR-SIEMENS-16.acr1.DCM; 
+gdcmCxxTests PrintHeader gdcm-MR-SIEMENS-16.acr1; #OK
+gdcmCxxTests testWrite gdcm-MR-SIEMENS-16.acr1 d;
+gdcmCxxTests PrintHeader gdcm-MR-SIEMENS-16.acr1.DCM 2 ; 
+vtkgdcmViewer  gdcm-MR-SIEMENS-16.acr1.DCM; 
 xmedcon gdcm-MR-SIEMENS-16.acr1.DCM; #breaks error: No images found
 xmedcon gdcm-MR-SIEMENS-16.acr1; # OK
  
-testWrite gdcm-MR-SIEMENS-16.acr2 d;
-PrintHeader  gdcm-MR-SIEMENS-16.acr2.DCM 2;
-v gdcm-MR-SIEMENS-16.acr2.DCM; #OK
+gdcmCxxTests testWrite gdcm-MR-SIEMENS-16.acr2 d;
+gdcmCxxTests PrintHeader  gdcm-MR-SIEMENS-16.acr2.DCM 2;
+vtkgdcmViewer gdcm-MR-SIEMENS-16.acr2.DCM; #OK
 xmedcon gdcm-MR-SIEMENS-16.acr2.DCM; #breaks
 #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
  
-testWrite MR-MONO2-12-an2.acr2 d;
-PrintHeader newACR1000.nema.DCM 2;
+gdcmCxxTests testWrite MR-MONO2-12-an2.acr2 d;
+gdcmCxxTests PrintHeader newACR1000.nema.DCM 2;
 xmedcon MR-MONO2-12-an2.acr2.DCM; # NOT CHECKED
 
-testWrite newACR1000.nema d;          # == gdcmMR-SIEMENS-16.acr2
-PrintHeader newACR1000.nema.DCM; #OK
-v newACR1000.nema.DCM; #OK
+gdcmCxxTests testWrite newACR1000.nema d;          # == gdcmMR-SIEMENS-16.acr2
+gdcmCxxTests PrintHeader newACR1000.nema.DCM; #OK
+vtkgdcmViewer newACR1000.nema.DCM; #OK
 xmedcon newACR1000.nema.DCM; # breaks : no image found
 
-testWrite oldACR00001.ima d;          # == gdcm-MR-SIEMENS.16.acr1
-PrintHeader oldACR00001.ima.DCM; # OK
-v oldACR00001.ima.DCM; #OK
+gdcmCxxTests testWrite oldACR00001.ima d;          # == gdcm-MR-SIEMENS.16.acr1
+gdcmCxxTests PrintHeader oldACR00001.ima.DCM; # OK
+vtkgdcmViewer oldACR00001.ima.DCM; #OK
 xmedcon oldACR00001.ima.DCM; # breaks : no image found
  
-testWrite OT-MONO2-8-a7.dcm d;
+gdcmCxxTests testWrite OT-MONO2-8-a7.dcm d;
 xmedcon OT-MONO2-8-a7.dcm.DCM 2; #ok
  
 #No Samples Per Pixel
 #--------------------
-testWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm d;
+gdcmCxxTests testWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm d;
 affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm;
-PrintHeader  gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.DCM 2; # OK
+gdcmCxxTests PrintHeader  gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.DCM 2; # OK
 
 #Unnormalized Rectangular LibIDO format image
 #--------------------------------------------
-testWrite gdcm-ACR-LibIDO.acr d;
-v gdcm-ACR-LibIDO.acr.DCM;
+gdcmCxxTests testWrite gdcm-ACR-LibIDO.acr d;
+vtkgdcmViewer gdcm-ACR-LibIDO.acr.DCM;
 xmedcon gdcm-ACR-LibIDO.acr.DCM;
 
 #Bits Allocated =12, Bits Stored=12
 #----------------------------------
 #MR Philips (once upon a time in Lyon-Sud)
-testWrite MR-MONO2-12-angio-an1.acr1 d;
-v MR-MONO2-12-angio-an1.acr1.DCM;                               # shitty image
+gdcmCxxTests testWrite MR-MONO2-12-angio-an1.acr1 d;
+vtkgdcmViewer MR-MONO2-12-angio-an1.acr1.DCM;                               # shitty image
 xmedcon R-MONO2-12-angio-an1.acr1.DCM;#pas mieux : warning: Incorrect PixelData length
 
 #RGB
 #---
-testWrite US.3405.1.dcm d;                    
+gdcmCxxTests testWrite US.3405.1.dcm d;                    
 echo "expected  pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
 echo "          PhotometricInterpretation=RGB";
 xmedcon US.3405.1.dcm.DCM; #OK
 
-testWrite OT-PAL-8-face.dcm d;
+gdcmCxxTests testWrite OT-PAL-8-face.dcm d;
 echo "expected  pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
 echo "          PhotometricInterpretation=PALETTE COLOR";
 xmedcon OT-PAL-8-face.dcm.DCM; #OK
 
-testWrite 8BitsUncompressedColor.dcm d;
+gdcmCxxTests testWrite 8BitsUncompressedColor.dcm d;
 xmedcon 8BitsUncompressedColor.dcm.DCM ; #OK
 
 # Implicit VR - Little Endian
 #-----------------------------
 
-testWrite CT-MONO2-16-ankle.dcm d;
+gdcmCxxTests testWrite CT-MONO2-16-ankle.dcm d;
  xmedcon CT-MONO2-16-ankle.dcm.DCM; #ok
- PrintHeader  CT-MONO2-16-ankle.dcm 2; #ok
gdcmCxxTests PrintHeader  CT-MONO2-16-ankle.dcm 2; #ok
 
-testWrite CT-MONO2-16-ort.dcm d;
+gdcmCxxTests testWrite CT-MONO2-16-ort.dcm d;
 xmedcon CT-MONO2-16-ort.dcm.DCM;  #OK
-PrintHeader CT-MONO2-16-ort.dcm.DCM 2; #ok
+gdcmCxxTests PrintHeader CT-MONO2-16-ort.dcm.DCM 2; #ok
 
-testWrite CT-MONO2-8-abdo.dcm d;
+gdcmCxxTests testWrite CT-MONO2-8-abdo.dcm d;
 xmedcon CT-MONO2-8-abdo.dcm.DCM; #OK
 
-testWrite gdcm-MR-PHILIPS-16.dcm d;
-PrintHeader gdcm-MR-PHILIPS-16.dcm.DCM 2; #OK
-v gdcm-MR-PHILIPS-16.dcm.DCM; # OK
+gdcmCxxTests testWrite gdcm-MR-PHILIPS-16.dcm d;
+gdcmCxxTests PrintHeader gdcm-MR-PHILIPS-16.dcm.DCM 2; #OK
+vtkgdcmViewer gdcm-MR-PHILIPS-16.dcm.DCM; # OK
 xmedcom gdcm-MR-PHILIPS-16.dcm.DCM; # error: No images found
 xmedcom gdcm-MR-PHILIPS-16.dcm; # OK with original image
 
-testWrite MR-MONO2-16-head.dcm d;
+gdcmCxxTests testWrite MR-MONO2-16-head.dcm d;
 xmedcon MR-MONO2-16-head.dcm.DCM;  #OK
 
-testWrite multiframe1Integris.dcm d;
-PrintHeader CT-MONO2-8-abdo.dcm.DCM 2; #OK
-v multiframe1Integris.dcm.DCM; #OK
+gdcmCxxTests testWrite multiframe1Integris.dcm d;
+gdcmCxxTests PrintHeader CT-MONO2-8-abdo.dcm.DCM 2; #OK
+vtkgdcmViewer multiframe1Integris.dcm.DCM; #OK
 xmedcon multiframe1Integris.dcm.DCM; #breaks No images found
  
-testWrite multiframe2GE.dcm d;
-v multiframe2GE.dcm.DCM; #OK
+gdcmCxxTests testWrite multiframe2GE.dcm d;
+vtkgdcmViewer multiframe2GE.dcm.DCM; #OK
 #breaks xmedcon
 xmedcon multiframe2GE.dcm.DCM; #breaks No images found
 
-v irmPhlipsNew1.dcm;
-testWrite irmPhlipsNew1.dcm d; # == gdcm-MR-PHILIPS-16.dcm
-v irmPhlipsNew1.dcm.DCM;                                        # black image
+vtkgdcmViewer irmPhlipsNew1.dcm;
+gdcmCxxTests testWrite irmPhlipsNew1.dcm d; # == gdcm-MR-PHILIPS-16.dcm
+vtkgdcmViewer irmPhlipsNew1.dcm.DCM;                                        # black image
 xmedcon irmPhlipsNew1.dcm.DCM; #breaks
 
 #avec imagette (icone)
 
-testWrite icone.dcm d;
-PrintHeader icone.dcm.DCM 2;
-#PrintHeader OK; v OK; breaks xmedcom  
-v icone.dcm.DCM;
+gdcmCxxTests testWrite icone.dcm d;
+gdcmCxxTests PrintHeader icone.dcm.DCM 2;
+#gdcmCxxTests PrintHeader OK; vtkgdcmViewer OK; breaks xmedcom  
+vtkgdcmViewer icone.dcm.DCM;
 xmedcon icone.dcm.DCM; #breaks
 
 #Palette
@@ -165,44 +165,44 @@ xmedcon icone.dcm.DCM; #breaks
 
 #Explicit VR - Little Endian
 #----------------------------
-testWrite CT-MONO2-16-brain.dcm d;
+gdcmCxxTests testWrite CT-MONO2-16-brain.dcm d;
 xmedcon CT-MONO2-16-brain.dcm.DCM; #OK
 
-PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2;
+gdcmCxxTests PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2;
 xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm #OK :Skip PHILIPS premature item bug
-v gdcm-MR-PHILIPS-16-Multi-Seq.dcm; #OK
-testWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm d;
-PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm.DCM 2;   #pixel group missing ?!?
-v gdcm-MR-PHILIPS-16-Multi-Seq.dcm.DCM;                #NOT CHECKED
+vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm; #OK
+gdcmCxxTests testWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm d;
+gdcmCxxTests PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm.DCM 2;   #pixel group missing ?!?
+vtkgdcmViewer gdcm-MR-PHILIPS-16-Multi-Seq.dcm.DCM;                #NOT CHECKED
 xmedcon gdcm-MR-PHILIPS-16-Multi-Seq.dcm.DCM; #breaks
 
-testWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm d;
-v gdcm-MR-PHILIPS-16-NonRectPix.dcm.DCM; #OK
+gdcmCxxTests testWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm d;
+vtkgdcmViewer gdcm-MR-PHILIPS-16-NonRectPix.dcm.DCM; #OK
 xmedcon gdcm-MR-PHILIPS-16-NonRectPix.dcm.DCM; #OK
 
-testWrite MR-MONO2-8-16x-heart.dcm d; #multiframe
-v MR-MONO2-8-16x-heart.dcm.DCM; #OK
+gdcmCxxTests testWrite MR-MONO2-8-16x-heart.dcm d; #multiframe
+vtkgdcmViewer MR-MONO2-8-16x-heart.dcm.DCM; #OK
 xmedcon MR-MONO2-8-16x-heart.dcm.DCM; #OK
 
-testWrite NM-MONO2-16-13x-heart.dcm d;  #multiframe
+gdcmCxxTests testWrite NM-MONO2-16-13x-heart.dcm d;  #multiframe
 xmedcon NM-MONO2-16-13x-heart.dcm.DCM; #OK
 
-testWrite sonataMonaco.dcm d;
+gdcmCxxTests testWrite sonataMonaco.dcm d;
 xmedcon sonataMonaco.dcm.DCM; #OK
 
 #MultiFrame
-testWrite US-MONO2-8-8x-execho.dcm d;
-PrintHeader US-MONO2-8-8x-execho.dcm.DCM;  
+gdcmCxxTests testWrite US-MONO2-8-8x-execho.dcm d;
+gdcmCxxTests PrintHeader US-MONO2-8-8x-execho.dcm.DCM;  
 xmedcon US-MONO2-8-8x-execho.dcm.DCM; #OK
 
 #RGB
 
-testWrite US-RGB-8-epicard.dcm d;
+gdcmCxxTests testWrite US-RGB-8-epicard.dcm d;
 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1";
 echo "         PhotometricInterpretation=RGB";
  xmedcon US-RGB-8-epicard.dcm.DCM; #OK
 
-testWrite US-RGB-8-esopecho.dcm d;
+gdcmCxxTests testWrite US-RGB-8-esopecho.dcm d;
 echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
 echo "         PhotometricInterpretation=RGB",
 xmedcon US-RGB-8-esopecho.dcm.DCM; #OK
@@ -211,94 +211,94 @@ xmedcon US-RGB-8-esopecho.dcm.DCM; #OK
 #--------------------------------------------------------------------------
 # (JPEG Lossless)
 
-testWrite CT-MONO2-16-chest.dcm d;
+gdcmCxxTests testWrite CT-MONO2-16-chest.dcm d;
 xmedcon CT-MONO2-16-chest.dcm.DCM; #OK
 
-testWrite 012345.002.050.dcm d;
+gdcmCxxTests testWrite 012345.002.050.dcm d;
 xmedcon 012345.002.050.dcm.DCM; #OK
 
-testWrite gdcm-JPEG-LossLess3a.dcm d;
-PrintHeader gdcm-JPEG-LossLess3a.dcm.DCM 2;
+gdcmCxxTests testWrite gdcm-JPEG-LossLess3a.dcm d;
+gdcmCxxTests PrintHeader gdcm-JPEG-LossLess3a.dcm.DCM 2;
 xmedcon gdcm-JPEG-LossLess3a.dcm.DCM;  #OK
 
-testWrite XA-MONO2-8-12x-catheter.dcm d;
-PrintHeader XA-MONO2-8-12x-catheter.dcm.DCM 2;
+gdcmCxxTests testWrite XA-MONO2-8-12x-catheter.dcm d;
+gdcmCxxTests PrintHeader XA-MONO2-8-12x-catheter.dcm.DCM 2;
 xmedcon XA-MONO2-8-12x-catheter.dcm.DCM; #OK
 
-testWrite xa_integris.dcm d;
+gdcmCxxTests testWrite xa_integris.dcm d;
 echo "a lot of fragments expected here";
 xmedcon xa_integris.dcm.DCM #OK
 
-testWrite 16BitsJpegLosslessGrayScale.dcm d;
+gdcmCxxTests testWrite 16BitsJpegLosslessGrayScale.dcm d;
 xmedcon 16BitsJpegLosslessGrayScale.dcm.DCM #OK
 
 #comming from GE dlx via VTServer
-v I9000001.dcm;
-testWrite I9000001.dcm d;
-PrintHeader I9000001.dcm.DCM 2;
+vtkgdcmViewer I9000001.dcm;
+gdcmCxxTests testWrite I9000001.dcm d;
+gdcmCxxTests PrintHeader I9000001.dcm.DCM 2;
 #black image 
-v I9000001.dcm.DCM; 
+vtkgdcmViewer I9000001.dcm.DCM; 
 #no image found
 xmedcon I9000001.dcm.DCM;
 
 #JPEG Extended (Process 2 & 4) // 16 bits
 #-----------------------------
-testWrite gdcm-JPEG-Extended.dcm d;
+gdcmCxxTests testWrite gdcm-JPEG-Extended.dcm d;
 xmedcon gdcm-JPEG-Extended.dcm.DCM; #OK
 
-testWrite jpeglossy1.dcm d;
+gdcmCxxTests testWrite jpeglossy1.dcm d;
 xmedcon jpeglossy1.dcm.DCM #OK
 
 #JPEG Baseline (Process 14)
 #--------------------------
-testWrite MR-MONO2-12-shoulder.dcm d;  
+gdcmCxxTests testWrite MR-MONO2-12-shoulder.dcm d;  
 xmedcon MR-MONO2-12-shoulder.dcm.DCM; #OK
 
 
 #fichier format ecat.
-#testWrite imageEcat.ecat r
+#gdcmCxxTests testWrite imageEcat.ecat r
 
 #JPEG Lossy 8 bits 
 #=================
 #JPEG Baseline (Process 1)
 #-------------------------
 # Bracco Files
-testWrite US.1.2.dcm d;
+gdcmCxxTests testWrite US.1.2.dcm d;
 echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)";
 echo "expected  pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0";
 echo "          PhotometricInterpretation=YBR_FULL_422";
 xmedcon US.1.2.dcm.DCM;  #OK
 
 #Sequoia Acusson U11
-testWrite CLIP0001-Sequoia-U11.dcm d;
+gdcmCxxTests testWrite CLIP0001-Sequoia-U11.dcm d;
 xmedcon CLIP0001-Sequoia-U11.dcm.DCM; #OK
 
 #RLE Lossless
 #-------------
-testWrite canadaAloka.dcm d;
+gdcmCxxTests testWrite canadaAloka.dcm d;
 echo "expected pixelType=8U SamplesPerPixel=1";
 echo "         PlanarConfiguration=0 PhotometricInterpretation=MONOCHROME2";
 echo "         nb Frames (DIMZ) : 1";
 xmedcon canadaAloka.dcm.DCM;
 
-testWrite jpeglossy1.dcm d;
+gdcmCxxTests testWrite jpeglossy1.dcm d;
  xmecon jpeglossy1.dcm.DCM; #OK
 
-testWrite FMAG0001.dcm d; 
+gdcmCxxTests testWrite FMAG0001.dcm d; 
 echo "expected pixelType=8U SamplesPerPixel=3";
 echo "         PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
 echo "         nb Frames (DIMZ) : 1";
 xmedcon FMAG0001.dcm.DCM; #OK
 
-v QMAG0001.dcm; #OK
+vtkgdcmViewer QMAG0001.dcm; #OK
 xmedcon QMAG0001.dcm; #original breaks xmedcon
-testWrite QMAG0001.dcm d; 
+gdcmCxxTests testWrite QMAG0001.dcm d; 
 echo "expected pixelType=8U SamplesPerPixel=3";
 echo "         PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL";
-v QMAG0001.dcm.DCM; #OK
+vtkgdcmViewer QMAG0001.dcm.DCM; #OK
 xmedcon QMAG0001.dcm.DCM; #OK
 
-testWrite US-PAL-8-10x-echo.dcm d;
+gdcmCxxTests testWrite US-PAL-8-10x-echo.dcm d;
 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0";
 echo "         PhotometricInterpretation=PALETTE COLOR";
 echo "         nb Frames (DIMZ): 10";
@@ -306,11 +306,11 @@ echo "expected : Parsing 10 'single fragment' Segments";
 echo "           Reading 10 'single fragment' Segments (ouf!)";
 xmedcon US-PAL-8-10x-echo.dcm.DCM; #OK
 
-testWrite 8BitsRunLengthGrayScale.dcm d;
+gdcmCxxTests testWrite 8BitsRunLengthGrayScale.dcm d;
 echo "expected : correct Gray image";
 xmedcon 8BitsRunLengthGrayScale.dcm.DCM; #OK
 
-testWrite 8BitsRunLengthColor.dcm d;
+gdcmCxxTests testWrite 8BitsRunLengthColor.dcm d;
 echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=2";
 echo "         PhotometricInterpretation=PALETTE COLOR";
 echo "expected correct color image";
@@ -318,7 +318,7 @@ xmedcon 8BitsRunLengthColor.dcm.DCM;  #OK
 
 #RLE 16 bits --> Try to find some more images
 
-testWrite 16BitsRunLengthGrayScale.dcm d;
+gdcmCxxTests testWrite 16BitsRunLengthGrayScale.dcm d;
 echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0";
 echo "         PhotometricInterpretation=MONOCHROME2";
 xmedcon 16BitsRunLengthGrayScale.dcm.DCM; #OK
@@ -327,51 +327,51 @@ xmedcon 16BitsRunLengthGrayScale.dcm.DCM; #OK
 #--------------------------
 #(break xmedcon)
  xmedcon 00191113.dcm; #No images found
-testWrite 00191113.dcm d;
+gdcmCxxTests testWrite 00191113.dcm d;
 xmedcon 00191113.dcm.DCM; #OK
 
 xmedcon DermaColorLossLess.dcm; #breaks xmedcon : No images found
-testWrite DermaColorLossLess.dcm d;
+gdcmCxxTests testWrite DermaColorLossLess.dcm d;
 xmedcon DermaColorLossLess.dcm.DCM; #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
-v DermaColorLossLess.dcm.DCM #OK
+vtkgdcmViewer DermaColorLossLess.dcm.DCM #OK
 
 #Original breaks xmedcon, affimdcm complian ?!
 affimdcm filein=RadBWLossLess.dcm; #OK
-v RadBWLossLess.dcm; #OK
+vtkgdcmViewer RadBWLossLess.dcm; #OK
 xmedcon RadBWLossLess.dcm; # breaks :error: No images found
-testWrite RadBWLossLess.dcm d;
-v RadBWLossLess.dcm.DCM; #OK
+gdcmCxxTests testWrite RadBWLossLess.dcm d;
+vtkgdcmViewer RadBWLossLess.dcm.DCM; #OK
 xmedcon RadBWLossLess.dcm.DCM; #error: No images found
 
 #Known as BUGGED !
 #----------------
 
 #Rectangular old 24 Bits image
-testWrite gdcm-RGB-LibIDORect.acr d;
-v gdcm-RGB-LibIDORect.acr.DCM;
+gdcmCxxTests testWrite gdcm-RGB-LibIDORect.acr d;
+vtkgdcmViewer gdcm-RGB-LibIDORect.acr.DCM;
 xmedcon gdcm-RGB-LibIDORect.acr.DCM; # breaks : large Bit Allocated (24)
 #TODO transform '24 bit images' into 8 bits + samples per pixel = 3
 
 #MR GE GENESIS_SIGNA Palo Alto
-testWrite DicomSampleNastyGEImage.dcm d;
+gdcmCxxTests testWrite DicomSampleNastyGEImage.dcm d;
 echo " expected : warning uneven length (13) for 0008|103e";
 xmedcon DicomSampleNastyGEImage.dcm.DCM; #OK
 
 #MR Philips NTSCAN Hop. Neuro Lyon
-PrintHeader philipsMR-lossy.ima #OK
+gdcmCxxTests PrintHeader philipsMR-lossy.ima #OK
 xmedcon philipsMR-lossy.ima; #original breaks xmedcon
-v philipsMR-lossy.ima; #Original OK
-testWrite philipsMR-lossy.ima d; 
+vtkgdcmViewer philipsMR-lossy.ima; #Original OK
+gdcmCxxTests testWrite philipsMR-lossy.ima d; 
 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";
-v philipsMR-lossy.ima.DCM;  #OK
+vtkgdcmViewer philipsMR-lossy.ima.DCM;  #OK
 xmedcon philipsMR-lossy.ima.DCM; #OK
 
 #CT Siemens Hop. Salengro Lille
-testWrite gdcm-JPEG-LossLess3a.dcm d;
+gdcmCxxTests testWrite gdcm-JPEG-LossLess3a.dcm d;
 echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels";
 echo "xmedcon says 'error: Unexpected end of file'";
 vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm.DCM;  #OK; needs 'R' for display   
@@ -380,7 +380,7 @@ xmedcon gdcm-JPEG-LossLess3a.dcm.DCM; #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
-testWrite gdcm-JPEG-LossLessThoravision.dcm d; #breaks ; 
+gdcmCxxTests testWrite gdcm-JPEG-LossLessThoravision.dcm d; #breaks ; 
 echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416";
 echo "breaks xmedcom, breaks e-film";
 echo "WAS expected : hashed image -with jLBJpeg-";
@@ -388,14 +388,14 @@ echo "IS  expected : Seg Fault";
 xmedcon gdcm-JPEG-LossLessThoravision.dcm.DCM; # NOT CHECKED
 
 #MR Picker ST. ANTHONY HOSPITAL
-testWrite MR.6799.1.dcm d;
+gdcmCxxTests testWrite MR.6799.1.dcm d;
 echo "OK; DICOM Image with NO Preamble";
 xmedcon MR.6799.1.dcm.DCM; #OK
 
 #Segmented Palette Color LUT Data
 xmedcon gdcm-US-ALOKA-16.dcm; #breaks
 vtkgdcmViewer gdcm-US-ALOKA-16.dcm3; #OK
-testWrite gdcm-US-ALOKA-16.dcm d;                             
+gdcmCxxTests testWrite gdcm-US-ALOKA-16.dcm d;                             
 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";
@@ -408,21 +408,21 @@ xmedcon gdcm-US-ALOKA-16.dcm.DCM; #breaks
 #Feb 03 13:40:19 log[26999]: error: No images found
 
 # bugged Siemens 'Leonardo' image
-testWrite 8078283Leonardo.dcm d;
+gdcmCxxTests testWrite 8078283Leonardo.dcm d;
 xmedcon 8078283Leonardo.dcm.DCM; #OK
 
 #CT McTwin Elscint C.H.R.U  LILLE  C.HURIEZ
  xmedcon MxTwinLossLess.dcm; #breaks
- v MxTwinLossLess.dcm; #OK
- testWrite MxTwinLossLess.dcm d;
- v MxTwinLossLess.dcm.DCM;  #OK
+ vtkgdcmViewer MxTwinLossLess.dcm; #OK
gdcmCxxTests testWrite MxTwinLossLess.dcm d;
+ vtkgdcmViewer MxTwinLossLess.dcm.DCM;  #OK
  xmedcon MxTwinLossLess.dcm.DCM #breaks
 
 # MRI image from VPRO burned CD
-v mriThruVPRO.dcm;                               # Tasteless SHIT
+vtkgdcmViewer mriThruVPRO.dcm;                               # Tasteless SHIT
 xmedcon mriThruVPRO.dcm;                         # pas mieux
-testWrite mriThruVPRO.dcm d;
-v mriThruVPRO.dcm.DCM; 
+gdcmCxxTests testWrite mriThruVPRO.dcm d;
+vtkgdcmViewer mriThruVPRO.dcm.DCM; 
 echo "expected : tasteless SHIT !"
 echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
 
@@ -430,6 +430,6 @@ echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?"
 # due to H table, a SeQuence is tagged with 0 length
 # when using gdcmFile::WriteDcmXXX
 xmedcon fromTheralys.dcm; # Original breaks xmedcon
-testWrite fromTheralys.dcm d;
-v fromTheralys.dcm.DCM; # OK (unsolved Length = 13 ...)
+gdcmCxxTests testWrite fromTheralys.dcm d;
+vtkgdcmViewer fromTheralys.dcm.DCM; # OK (unsolved Length = 13 ...)
 xmedcon fromTheralys.dcm.DCM; # Breaks : no image found