From: Andrey Kamaev Date: Thu, 10 Jan 2013 13:12:14 +0000 (+0400) Subject: Weaken acceptance criteria in phase test X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~4047^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20c5a8788d922f86bc636363addeeacff1312c61;p=platform%2Fupstream%2Fopencv.git Weaken acceptance criteria in phase test --- diff --git a/modules/core/test/test_math.cpp b/modules/core/test/test_math.cpp index 0558ab0..21c8cb4 100644 --- a/modules/core/test/test_math.cpp +++ b/modules/core/test/test_math.cpp @@ -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);