Commit 7bd8f929 authored by Elena Gvozdeva's avatar Elena Gvozdeva

fixed

parent 8c5e19c2
...@@ -12,7 +12,7 @@ namespace ocl { ...@@ -12,7 +12,7 @@ namespace ocl {
typedef std::tr1::tuple<Size, Size, MethodType> ImgSize_TmplSize_Method_t; typedef std::tr1::tuple<Size, Size, MethodType> ImgSize_TmplSize_Method_t;
typedef TestBaseWithParam<ImgSize_TmplSize_Method_t> ImgSize_TmplSize_Method; typedef TestBaseWithParam<ImgSize_TmplSize_Method_t> ImgSize_TmplSize_Method;
OCL_PERF_TEST_P(ImgSize_TmplSize_Method, matchTemplate, OCL_PERF_TEST_P(ImgSize_TmplSize_Method, MatchTemplate,
::testing::Combine( ::testing::Combine(
testing::Values(szSmall128, cv::Size(320, 240), testing::Values(szSmall128, cv::Size(320, 240),
cv::Size(640, 480), cv::Size(800, 600), cv::Size(640, 480), cv::Size(800, 600),
...@@ -43,10 +43,13 @@ namespace ocl { ...@@ -43,10 +43,13 @@ namespace ocl {
method == TM_CCORR_NORMED || method == TM_CCORR_NORMED ||
method == TM_SQDIFF_NORMED || method == TM_SQDIFF_NORMED ||
method == TM_CCOEFF_NORMED; method == TM_CCOEFF_NORMED;
double eps = isNormed ? 1e-6 double eps = isNormed ? 1e-3
: 255 * 255 * tmpl.total() * 1e-6; : 255 * 255 * tmpl.total() * 1e-3;
SANITY_CHECK(result, eps); if (isNormed)
SANITY_CHECK(result,eps,ERROR_RELATIVE);
else
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