]> Creatis software - gdcm.git/blobdiff - Testing/TestAllReadCompareDicom.cxx
* src/gdcmDocument.cxx : fix bug... test if the fp is opened to use it
[gdcm.git] / Testing / TestAllReadCompareDicom.cxx
index 11a2d7defdd06a7c7022e3ad8e0e8842e4c60832..4a461f2cda64f008110a78a8ceb278bfd151e4f9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllReadCompareDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/24 16:39:18 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2004/11/25 10:24:33 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -46,9 +46,10 @@ int InternalTest(std::string const & filename,
       FILE* testFILE = fopen( referenceFileName.c_str(), "r" );
       if (! testFILE )
       {
-         uint8_t* testedImageData = tested->GetImageDataRaw(); // Kludge
+         uint8_t* testedImageData = tested->GetImageData(); // Kludge
          (void)testedImageData;
 
+         tested->SetWriteModeToRGB();
          tested->WriteDcmExplVR( referenceFileName );
       }
       else
@@ -74,11 +75,11 @@ int InternalTest(std::string const & filename,
 
       ////// Step 3b:
       std::cout << "3b...";
-      int testedDataSize    = tested->GetImageDataSizeRaw();
-      uint8_t* testedImageData = tested->GetImageDataRaw();
+      int testedDataSize    = tested->GetImageDataSize();
+      uint8_t* testedImageData = tested->GetImageData();
     
-      int    referenceDataSize = reference->GetImageDataSizeRaw();
-      uint8_t* referenceImageData = reference->GetImageDataRaw();
+      int    referenceDataSize = reference->GetImageDataSize();
+      uint8_t* referenceImageData = reference->GetImageData();
 
       if (testedDataSize != referenceDataSize)
       {