From c36dcbcada41e847fafe1e70cfd4d829f8dd6888 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Mon, 26 Nov 2012 16:09:24 +0400 Subject: [PATCH] Increase accuracy interval for image filters on Android and other platforms when sensible --- modules/imgproc/perf/perf_blur.cpp | 10 +++------- modules/imgproc/perf/perf_filter2d.cpp | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/imgproc/perf/perf_blur.cpp b/modules/imgproc/perf/perf_blur.cpp index 36519f3ec..a79603f70 100644 --- a/modules/imgproc/perf/perf_blur.cpp +++ b/modules/imgproc/perf/perf_blur.cpp @@ -63,11 +63,7 @@ PERF_TEST_P(Size_MatType_BorderType3x3, gaussianBlur3x3, TEST_CYCLE() GaussianBlur(src, dst, Size(3,3), 0, 0, btype); -#if CV_SSE2 SANITY_CHECK(dst, 1); -#else - SANITY_CHECK(dst); -#endif } PERF_TEST_P(Size_MatType_BorderType3x3, blur3x3, @@ -89,7 +85,7 @@ PERF_TEST_P(Size_MatType_BorderType3x3, blur3x3, TEST_CYCLE() blur(src, dst, Size(3,3), Point(-1,-1), btype); - SANITY_CHECK(dst, 1e-3); + SANITY_CHECK(dst, 1); } PERF_TEST_P(Size_MatType_BorderType, blur16x16, @@ -183,7 +179,7 @@ PERF_TEST_P(Size_MatType_BorderType, gaussianBlur5x5, TEST_CYCLE() GaussianBlur(src, dst, Size(5,5), 0, 0, btype); - SANITY_CHECK(dst); + SANITY_CHECK(dst, 1e-3); } PERF_TEST_P(Size_MatType_BorderType, blur5x5, @@ -205,5 +201,5 @@ PERF_TEST_P(Size_MatType_BorderType, blur5x5, TEST_CYCLE() blur(src, dst, Size(5,5), Point(-1,-1), btype); - SANITY_CHECK(dst, 1e-3); + SANITY_CHECK(dst, 1); } diff --git a/modules/imgproc/perf/perf_filter2d.cpp b/modules/imgproc/perf/perf_filter2d.cpp index e5310e267..4176e66a7 100644 --- a/modules/imgproc/perf/perf_filter2d.cpp +++ b/modules/imgproc/perf/perf_filter2d.cpp @@ -39,7 +39,7 @@ PERF_TEST_P( TestFilter2d, Filter2d, TEST_CYCLE() filter2D(src, dst, CV_8UC4, kernel, Point(1, 1), 0., borderMode); - SANITY_CHECK(dst); + SANITY_CHECK(dst, 1); } PERF_TEST_P( Image_KernelSize, GaborFilter2d,