-#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
}
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 :
// and that does the job
int dataSize = f2->GetImageDataSize();
- void *imageData = f2->GetImageData();
+ uint8_t* imageData = f2->GetImageData();
std::cout << "dataSize :" << dataSize << std::endl;