Debevec Calibrate

This commit is contained in:
Fedor Morozov 2013-09-05 14:41:35 +04:00
parent 0f703b8162
commit 85eb52b8af

View File

@ -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);
}