mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Debevec Calibrate
This commit is contained in:
parent
0f703b8162
commit
85eb52b8af
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user