From 85eb52b8af54c199d890ab075a67d8741ff4fab6 Mon Sep 17 00:00:00 2001 From: Fedor Morozov Date: Thu, 5 Sep 2013 14:41:35 +0400 Subject: [PATCH] Debevec Calibrate --- modules/photo/test/test_hdr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/photo/test/test_hdr.cpp b/modules/photo/test/test_hdr.cpp index efc3774fa..af8531705 100644 --- a/modules/photo/test/test_hdr.cpp +++ b/modules/photo/test/test_hdr.cpp @@ -202,5 +202,9 @@ TEST(Photo_CalibrateDebevec, regression) loadResponseCSV(test_path + "calibrate/debevec.csv", expected); Ptr calibrate = createCalibrateDebevec(); calibrate->process(images, response, times); - checkEqual(expected, response, 1e-3f); + Mat diff = abs(response - expected); + diff = diff.mul(1.0f / response); + double max; + minMaxLoc(diff, NULL, &max); + ASSERT_FALSE(max > 0.1); }