From: malaterre Date: Mon, 2 May 2005 17:51:57 +0000 (+0000) Subject: ENH: Set a maximum of difference to avoid generating a log bigger than mem size of... X-Git-Tag: Version1.2.bp~735 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7fe25e72be2a9851dea9a9a031369877338ede0c;hp=1fe34ecf6db1977790024ac1a0a4ce5be010b9d8;p=gdcm.git ENH: Set a maximum of difference to avoid generating a log bigger than mem size of the machine --- diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index e3212a85..f00906cf 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/27 09:14:06 $ - Version: $Revision: 1.40 $ + Date: $Date: 2005/05/02 17:51:57 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -112,9 +112,10 @@ private: static const unsigned int HEADER_SIZE; }; +const unsigned int MAX_NUMBER_OF_DIFFERENCE = 10; const unsigned int TestFile::HEADER_SIZE = 20; -TestFile::TestFile(void) +TestFile::TestFile() { fileName = ""; readable=false; @@ -516,13 +517,17 @@ int InternalTest(std::string const &filename, std::cout << " list of pixels differing (pos : test - ref) :" << std::endl; - for(int i=0;i