X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FTestCopyRescaleDicom.cxx;h=4421bff8169f4e6585978b504a8a2ee9fb2b9e8e;hb=0ed9f088aad1ff61cf96c1203145c7461f2f70d7;hp=58491763c3c61c91b099360d6a5a39039b9af670;hpb=bc69950a406d06c50f0fb75a96572784965cb534;p=gdcm.git diff --git a/Testing/TestCopyRescaleDicom.cxx b/Testing/TestCopyRescaleDicom.cxx index 58491763..4421bff8 100644 --- a/Testing/TestCopyRescaleDicom.cxx +++ b/Testing/TestCopyRescaleDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestCopyRescaleDicom.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:46 $ - Version: $Revision: 1.21 $ + Date: $Date: 2006/04/11 16:05:03 $ + Version: $Revision: 1.22 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -114,10 +114,10 @@ int CopyRescaleDicom(std::string const &filename, if( bitsStored == "16" ) { std::cout << "Rescale..."; - copyF.InsertEntryString( "8", 0x0028, 0x0100); // Bits Allocated - copyF.InsertEntryString( "8", 0x0028, 0x0101); // Bits Stored - copyF.InsertEntryString( "7", 0x0028, 0x0102); // High Bit - copyF.InsertEntryString( "0", 0x0028, 0x0103); // Pixel Representation + copyF.InsertEntryString( "8", 0x0028, 0x0100, "US"); // Bits Allocated + copyF.InsertEntryString( "8", 0x0028, 0x0101, "US"); // Bits Stored + copyF.InsertEntryString( "7", 0x0028, 0x0102, "US"); // High Bit + copyF.InsertEntryString( "0", 0x0028, 0x0103, "US"); // Pixel Representation // We assume the value were from 0 to uint16_t max rescaleSize = dataSize / 2;