mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +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);
|
loadResponseCSV(test_path + "calibrate/debevec.csv", expected);
|
||||||
Ptr<CalibrateDebevec> calibrate = createCalibrateDebevec();
|
Ptr<CalibrateDebevec> calibrate = createCalibrateDebevec();
|
||||||
calibrate->process(images, response, times);
|
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