]> Creatis software - gdcm.git/blobdiff - Testing/TestCopyDicom.cxx
* Bug fix due my last commit (compilation under Windows).
[gdcm.git] / Testing / TestCopyDicom.cxx
index c7e74012b8445b8e7efa9ce1c22f625ed6b673c7..38cc73e0198857516abfc82df2d0bf99c8002073 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestCopyDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/25 10:24:33 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2004/12/03 20:16:56 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,7 +17,6 @@
 =========================================================================*/
 #include "gdcmHeader.h"
 #include "gdcmFile.h"
-#include "gdcmDocument.h"
 #include "gdcmValEntry.h"
 #include "gdcmBinEntry.h"
 
@@ -74,7 +73,7 @@ int CopyDicom(std::string const & filename,
       //////////////// Step 1:
       std::cout << "      1...";
       gdcm::Header *originalH = new gdcm::Header( filename );
-      gdcm::Header *copyH     = new gdcm::Header( output );
+      gdcm::Header *copyH     = new gdcm::Header( );
 
       //First of all copy the header field by field
   
@@ -129,8 +128,6 @@ int CopyDicom(std::string const & filename,
       // Useless to set the image datas, because it's already made when
       // copying the corresponding BinEntry that contains the pixel datas
       copy->SetImageData(imageData, dataSize);
-//      copy->GetImageData();
-//      original->GetHeader()->SetImageDataSize(dataSize);
 
       //////////////// Step 3:
       std::cout << "3...";