]> Creatis software - gdcm.git/blobdiff - Example/WriteDicom.cxx
* Remove some useless methods in gdcm::Document, gdcm::Header and gdcm::File
[gdcm.git] / Example / WriteDicom.cxx
index 3f8658aab52cef3f2ca32b855b8398f471273100..7116f734fceaefaaa7065440b17675711d50e015 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: WriteDicom.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/11/26 10:55:03 $
+  Version:   $Revision: 1.8 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 #include "gdcm.h"
 
 // Writting of a DICOM file based on a correct dicom header
@@ -44,7 +61,6 @@ int main(int argc, char* argv[])
 
   // TODO : Shouldn't we merge those two functions ?
   f1->SetImageData( imageData, dataSize);
-  f1->GetHeader()->SetImageDataSize( dataSize );
 
   f1->GetHeader()->Print();