X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestCopyRescaleDicom.cxx;h=907dad9b54eaaaee5ecfc7224b8646d423d7815e;hb=1e8074191600434684069ea9fad2931507fcdb2f;hp=409c2ef8202550ad162b23e1e21ec4fdca94fbf9;hpb=0b1ad8fdf8d7fc3872755852f68dd77d532e2cad;p=gdcm.git diff --git a/Testing/TestCopyRescaleDicom.cxx b/Testing/TestCopyRescaleDicom.cxx index 409c2ef8..907dad9b 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/02/09 22:50:47 $ - Version: $Revision: 1.17 $ + Date: $Date: 2005/04/19 10:02:40 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -85,14 +85,14 @@ int CopyRescaleDicom(std::string const &filename, if ( gdcm::BinEntry *b = dynamic_cast(d) ) { copyF.InsertBinEntry( b->GetBinArea(),b->GetLength(), - b->GetGroup(),b->GetElement(), - b->GetVR() ); + b->GetGroup(),b->GetElement(), + b->GetVR() ); } else if ( gdcm::ValEntry *v = dynamic_cast(d) ) { copyF.InsertValEntry( v->GetValue(), - v->GetGroup(),v->GetElement(), - v->GetVR() ); + v->GetGroup(),v->GetElement(), + v->GetVR() ); } else { @@ -128,7 +128,7 @@ int CopyRescaleDicom(std::string const &filename, uint8_t *tmpRescale = rescaleImage; for(unsigned int i=0; i>8; + *tmpRescale = (uint8_t)( (*tmpImage)>>8 ); tmpImage++; tmpRescale++; }