From 7fe25e72be2a9851dea9a9a031369877338ede0c Mon Sep 17 00:00:00 2001 From: malaterre Date: Mon, 2 May 2005 17:51:57 +0000 Subject: [PATCH] ENH: Set a maximum of difference to avoid generating a log bigger than mem size of the machine --- Testing/TestAllReadCompareDicom.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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