Commit 85eb52b8 authored by Fedor Morozov's avatar Fedor Morozov

Debevec Calibrate

parent 0f703b81
......@@ -202,5 +202,9 @@ TEST(Photo_CalibrateDebevec, regression)
loadResponseCSV(test_path + "calibrate/debevec.csv", expected);
Ptr<CalibrateDebevec> 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment