diff --git a/modules/photo/test/test_hdr.cpp b/modules/photo/test/test_hdr.cpp index efc3774fa0..af85317055 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); }