Skip to content
Snippets Groups Projects
Commit 756b211e authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Ajout patametre NbOfPixelsDiff dans le Dart.

parent 1560aeea
No related branches found
No related tags found
No related merge requests found
......@@ -839,6 +839,7 @@ int RegressionTestImage (int cpt, const char *testImageFilename, const char *bas
diff->UpdateLargestPossibleRegion();
double status = diff->GetTotalDifference();
unsigned long numberOfPixelsWithDifferences = diff->GetNumberOfPixelsWithDifferences();
otbGenericMsgDebugMacro(<< "Status diff->GetTotalDifference : "<<status);
// if there are discrepencies, create an diff image
......@@ -879,6 +880,10 @@ int RegressionTestImage (int cpt, const char *testImageFilename, const char *bas
std::cout << status;
std::cout << "</DartMeasurement>" << std::endl;
std::cout << "<DartMeasurement name=\"NumberOfPixelsWithDifferences "<<cpt<<"\" type=\"numeric/integer\">";
std::cout << numberOfPixelsWithDifferences;
std::cout << "</DartMeasurement>" << std::endl;
std::cout << "<DartMeasurement name=\"ToleranceDiffPixelImage\" type=\"numeric/double\">";
std::cout << toleranceDiffPixelImage;
std::cout << "</DartMeasurement>" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment