+/*=========================================================================
+
+ 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
}
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 :
// TODO : Shouldn't we merge those two functions ?
f1->SetImageData( imageData, dataSize);
- f1->GetHeader()->SetImageDataSize( dataSize );
f1->GetHeader()->Print();