Skip to content

Commit

Permalink
Merge pull request opencv#286 from taka-no-me:tweak_phase_test_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kamaev authored and OpenCV Buildbot committed Jan 10, 2013
2 parents b68df41 + 20c5a87 commit a99799c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/test/test_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2430,8 +2430,8 @@ class Core_PhaseTest : public cvtest::BaseTest
}

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);
Expand Down

0 comments on commit a99799c

Please sign in to comment.