X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FWriteDicom.cxx;h=e450f33f0689307afbc75561dc2353682d72af40;hb=ebed5ba94d4839a2ef85f6a4c727dfb57816c00d;hp=50ee73574ecbf2298e18e4a2d31166e73f75a3b9;hpb=be54aab0103af7dee1a3bb5b8b3ee93b59ca9073;p=gdcm.git diff --git a/Example/WriteDicom.cxx b/Example/WriteDicom.cxx index 50ee7357..e450f33f 100644 --- a/Example/WriteDicom.cxx +++ b/Example/WriteDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: WriteDicom.cxx,v $ Language: C++ - Date: $Date: 2005/01/24 16:44:53 $ - Version: $Revision: 1.14 $ + Date: $Date: 2005/01/25 15:44:22 $ + Version: $Revision: 1.15 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -41,12 +41,12 @@ int main(int argc, char* argv[]) 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: