Merge pull request #286 from taka-no-me:tweak_phase_test_threshold

pull/253/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit a99799caa3
  1. 4
      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);

Loading…
Cancel
Save