]> Creatis software - gdcm.git/blobdiff - Example/WriteDicom.cxx
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[gdcm.git] / Example / WriteDicom.cxx
index a10d1f78efe333792090653fd97e1c08b1a07566..3f8658aab52cef3f2ca32b855b8398f471273100 100644 (file)
@@ -1,5 +1,4 @@
-#include "gdcmDocument.h"
-#include "gdcmFile.h"
+#include "gdcm.h"
 
 // Writting of a DICOM file based on a correct dicom header
 // and data pixel of another image
@@ -15,10 +14,10 @@ int main(int argc, char* argv[])
     }
 
   const char *first = argv[1];
-  gdcmFile *f1 = new gdcmFile( first );
+  gdcm::File *f1 = new gdcm::File( first );
 
   const char *second = argv[2];
-  gdcmFile *f2 = new gdcmFile( second );
+  gdcm::File *f2 = new gdcm::File( second );
 
   // We assume that DICOM fields of second file actually exists :
 
@@ -39,7 +38,7 @@ int main(int argc, char* argv[])
   //        and that does the job
 
   int dataSize    = f2->GetImageDataSize();
-  void *imageData = f2->GetImageData();
+  uint8_t* imageData = f2->GetImageData();
 
   std::cout << "dataSize :" << dataSize << std::endl;