From ee0c1ed8ddfe7082a9f9063daeb302fac343369f Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Thu, 20 Dec 2007 17:05:10 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20pour=20afficher=20qu'une=20fois=20la=20?= =?UTF-8?q?tol=C3=A9rance=20et=20le=20status=20+=20ajout=20number=20of=20p?= =?UTF-8?q?ixels=20diferent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Common/otbTestMain.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Code/Common/otbTestMain.h b/Code/Common/otbTestMain.h index 1516bc336f..8a94e0cfd4 100644 --- a/Code/Common/otbTestMain.h +++ b/Code/Common/otbTestMain.h @@ -875,7 +875,6 @@ int RegressionTestImage (int cpt, const char *testImageFilename, const char *bas } - otbGenericMsgDebugMacro(<< "RegressionTestImage DifferenceThreshold : "<<toleranceDiffPixelImage); // Now compare the two images typedef itk::DifferenceImageFilter<ImageType,ImageType> DiffType; DiffType::Pointer diff = DiffType::New(); @@ -887,7 +886,12 @@ int RegressionTestImage (int cpt, const char *testImageFilename, const char *bas double status = diff->GetTotalDifference(); unsigned long numberOfPixelsWithDifferences = diff->GetNumberOfPixelsWithDifferences(); - otbGenericMsgDebugMacro(<< "Status diff->GetTotalDifference : "<<status); + //Write only one this message + if(reportErrors == 0) + { + otbGenericMsgDebugMacro(<< "RegressionTestImage DifferenceThreshold: "<<toleranceDiffPixelImage); + otbGenericMsgDebugMacro(<< "Status diff->GetTotalDifference: "<<status<<" for "<<numberOfPixelsWithDifferences<<" pixel(s)." ); + } // if there are discrepencies, create an diff image if (status && reportErrors) { -- GitLab