Commit 82a198a8 authored by vbystricky's avatar vbystricky

Fix epsilon calculation for sanity check in x32 build

parent dcc4d364
......@@ -77,7 +77,7 @@ PERF_TEST_P(ImgSize_TmplSize_Method, matchTemplateBig,
method == TM_SQDIFF_NORMED ||
method == TM_CCOEFF_NORMED;
double eps = isNormed ? 1e-6
: 255 * 255 * tmpl.total() * 1e-6;
: 255.0 * 255.0 * (double)tmpl.total() * 1e-6;
SANITY_CHECK(result, eps);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment