Skip to content

Commit

Permalink
avoid test failure on Arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoaki0705 committed Apr 16, 2020
1 parent dcec315 commit 96075ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/objdetect/test/test_cascadeandhog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ void HOGDescriptorTester::compute(InputArray _img, vector<float>& descriptors,
actual_hog->compute(img, actual_descriptors, winStride, padding, locations);

double diff_norm = cvtest::norm(actual_descriptors, descriptors, NORM_L2 + NORM_RELATIVE);
const double eps = FLT_EPSILON * 100;
const double eps = 2.0e-3;
if (diff_norm > eps)
{
ts->printf(cvtest::TS::SUMMARY, "Norm of the difference: %lf\n", diff_norm);
Expand Down Expand Up @@ -1299,7 +1299,7 @@ void HOGDescriptorTester::computeGradient(const Mat& img, Mat& grad, Mat& qangle
const char* args[] = { "Gradient's", "Qangles's" };
actual_hog->computeGradient(img, actual_mats[0], actual_mats[1], paddingTL, paddingBR);

const double eps = FLT_EPSILON * 100;
const double eps = 8.0e-3;
for (i = 0; i < 2; ++i)
{
double diff_norm = cvtest::norm(actual_mats[i], reference_mats[i], NORM_L2 + NORM_RELATIVE);
Expand Down

0 comments on commit 96075ce

Please sign in to comment.