]> Creatis software - gdcm.git/blobdiff - Example/WriteDicom.cxx
Forget this one
[gdcm.git] / Example / WriteDicom.cxx
index 0323863929a26acc7fb3311dbfbf68635f71ce1d..905163cdf842aa3cd3a8dc56e67dd185d4d16227 100644 (file)
@@ -1,4 +1,4 @@
-#include "gdcmHeader.h"
+#include "gdcmDocument.h"
 #include "gdcmFile.h"
 
 // Writting of a DICOM file based on a correct dicom header
@@ -6,7 +6,7 @@
 
 int main(int argc, char* argv[])
 {
-
   if (argc < 3) 
     {
     std::cerr << "Usage :" << std::endl << argv[0] << 
@@ -49,7 +49,7 @@ int main(int argc, char* argv[])
   f1->SetImageData( imageData, dataSize);
   f1->GetHeader()->SetImageDataSize( dataSize );
        
-  f1->GetHeader()->PrintEntry();
+  f1->GetHeader()->Print();
        
   std::string s0  = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0000);
   std::string s10 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0010);