Program: gdcm
Module: $RCSfile: TestChangeHeader.cxx,v $
Language: C++
- Date: $Date: 2005/01/24 16:10:49 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2005/02/02 14:26:30 $
+ Version: $Revision: 1.14 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// This examples read two images (could be the same). Try to modify
// Acquisition Matrix and then write the image again
-int main(int argc, char* argv[])
+int main(int argc, char *argv[])
{
if (argc < 3)
{
std::cerr << "usage :" << std::endl <<
- argv[0] << " nomFichierPourEntete nomFichierPourDonnées" <<
+ argv[0] << " fileNameForHeader fileNameForData" <<
std::endl;
return 1;
}
if(matrix != "gdcm::Unfound")
{
std::cerr << "Aquisition Matrix:" << matrix << std::endl;
- f1->GetFile()->ReplaceOrCreate( matrix, 0x0018, 0x1310);
+ f1->GetFile()->InsertValEntry( matrix, 0x0018, 0x1310);
}
f1->GetImageData();
return 0;
}
-
-