From: regrain Date: Wed, 27 Apr 2005 09:14:06 +0000 (+0000) Subject: * Amelioration of TestAllReadCompareDicom X-Git-Tag: Version1.2.bp~747 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cb4c9422fb1923ce0a5bb8478a5f25e9c37410b8;p=gdcm.git * Amelioration of TestAllReadCompareDicom -- BeNours --- diff --git a/ChangeLog b/ChangeLog index 3ab26bed..782fc072 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,14 @@ +2005-04-26 Benoit Regrain + * Testing/TestAllReadCompareDicom.cxx : update the test printed results and + description. + 2005-04-20 Mathieu Malaterre * FIX : Numerical exception on borland (cannot divide by 0, doh !) But this is a case where we should really signify the user there is few chance the serie is really a serie... 2005-04-20 Benoit Regrain - * FIX : on X, the python part is correctly installed. All files are + * FIX : on X, the python part is correctly installed. All files are installed in gdcm sub-directory 2005-04-19 Benoit Regrain diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index 56f5646b..e3212a85 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllReadCompareDicom.cxx,v $ Language: C++ - Date: $Date: 2005/04/19 10:05:36 $ - Version: $Revision: 1.39 $ + Date: $Date: 2005/04/27 09:14:06 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,6 +18,8 @@ #include "gdcmDirList.h" #include "gdcmFile.h" #include "gdcmFileHelper.h" +#include "gdcmGlobal.h" +#include "gdcmTS.h" #include @@ -502,11 +504,28 @@ int InternalTest(std::string const &filename, testedDataSize) != 0 ) { (void)res; + std::string ts = tested->GetFile()->GetTransferSyntax(); + std::cout << " Failed" << std::endl << " pixel (" << PixelType << ") differ (as expanded in memory)." + << std::endl + << " compression : " + << gdcm::Global::GetTS()->GetValue(ts) << std::endl; + + std::cout << " list of pixels differing (pos : test - ref) :" << std::endl; + for(int i=0;i