Program: gdcm
Module: $RCSfile: WriteDicom.cxx,v $
Language: C++
- Date: $Date: 2005/01/24 16:44:53 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2005/02/02 10:06:32 $
+ Version: $Revision: 1.16 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// Writting of a DICOM file based on a correct dicom header
// and data pixel of another image
-int main(int argc, char* argv[])
+int main(int argc, char *argv[])
{
if (argc < 3)
std::string nbFrames = f2->GetFile()->GetEntryValue(0x0028, 0x0008);
if(nbFrames != "gdcm::Unfound") {
- f1->GetFile()->Insert( nbFrames, 0x0028, 0x0008);
+ f1->GetFile()->InsertValEntry( nbFrames, 0x0028, 0x0008);
}
- f1->GetFile()->Insert(
+ f1->GetFile()->InsertValEntry(
f2->GetFile()->GetEntryValue(0x0028, 0x0010), 0x0028, 0x0010); // nbLig
- f1->GetFile()->Insert(
+ f1->GetFile()->InsertValEntry(
f2->GetFile()->GetEntryValue(0x0028, 0x0011), 0x0028, 0x0011); // nbCol
// Some other tags should be updated:
// and that does the job
int dataSize = f2->GetImageDataSize();
- uint8_t* imageData = f2->GetImageData();
+ uint8_t *imageData = f2->GetImageData();
std::cout << "dataSize :" << dataSize << std::endl;