mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Weaken acceptance criteria in phase test
This commit is contained in:
parent
47963f0083
commit
20c5a8788d
@ -2430,8 +2430,8 @@ protected:
|
||||
}
|
||||
|
||||
Mat convertedRes = resInRad * 180. / CV_PI;
|
||||
double normDiff = norm(convertedRes - resInDeg);
|
||||
if(normDiff > FLT_EPSILON)
|
||||
double normDiff = norm(convertedRes - resInDeg, NORM_INF);
|
||||
if(normDiff > FLT_EPSILON * 180.)
|
||||
{
|
||||
ts->printf(cvtest::TS::LOG, "There are incorrect result angles (in radians)\n");
|
||||
ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT);
|
||||
|
Loading…
Reference in New Issue
Block a user