]> Creatis software - gdcm.git/blobdiff - Example/Volume2Dicom.cxx
First stage of name normalisation : gdcm::File replace by gdcm::FileHelper
[gdcm.git] / Example / Volume2Dicom.cxx
index 96010e817e36c53c3fdd3b8fe5e0e1e6f0750121..a4721fff2563c5e3cf5abca43a28292b5fa4da9e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Volume2Dicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/06 11:37:37 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/01/20 16:16:58 $
+  Version:   $Revision: 1.4 $
                                                                                  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -26,7 +26,7 @@
 #include "gdcmHeader.h"
 #include "gdcmDocEntry.h"
 #include "gdcmBinEntry.h"
-#include "gdcmFile.h"
+#include "gdcmFileHelper.h"
 #include "gdcmUtil.h"
 
 #define USAGE "USAGE: Input3DImage OutputDirectory"
@@ -122,7 +122,7 @@ int main( int argc, char * argv[] )
     ////////////////////////////////////////////////////////////
     // Create a new dicom file object from the header         //
     ////////////////////////////////////////////////////////////
-    gdcm::File  *f1 = new gdcm::File(h1);
+    gdcm::FileHelper  *f1 = new gdcm::FileHelper(h1);
     uint8_t *myData = f1->GetImageData(); // Get an Image pointer
     f1->SetImageData( myData, sliceSize); // This callback ensures that the internal
                                           // Pixel_Data of f1 is set correctly