From d46659f6cc6fd3a653b5e0aa80e4559c31a35bf6 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Fri, 20 Apr 2012 15:33:34 +0000 Subject: [PATCH] Set sanity thresholds for several performance tests --- modules/imgproc/perf/perf_blur.cpp | 4 ++-- modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp | 2 +- modules/imgproc/perf/perf_integral.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/perf/perf_blur.cpp b/modules/imgproc/perf/perf_blur.cpp index 5c27747..1fc668c 100644 --- a/modules/imgproc/perf/perf_blur.cpp +++ b/modules/imgproc/perf/perf_blur.cpp @@ -89,7 +89,7 @@ PERF_TEST_P(Size_MatType_BorderType3x3, blur3x3, TEST_CYCLE() blur(src, dst, Size(3,3), Point(-1,-1), btype); - SANITY_CHECK(dst); + SANITY_CHECK(dst, 1e-3); } PERF_TEST_P(Size_MatType_BorderType, gaussianBlur5x5, @@ -133,5 +133,5 @@ PERF_TEST_P(Size_MatType_BorderType, blur5x5, TEST_CYCLE() blur(src, dst, Size(5,5), Point(-1,-1), btype); - SANITY_CHECK(dst); + SANITY_CHECK(dst, 1e-3); } diff --git a/modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp b/modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp index a7475fa..3e5f207 100644 --- a/modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp +++ b/modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp @@ -33,5 +33,5 @@ PERF_TEST_P(Img_BlockSize_ApertureSize_BorderType, cornerEigenValsAndVecs, TEST_CYCLE() cornerEigenValsAndVecs(src, dst, blockSize, apertureSize, borderType); - SANITY_CHECK(dst); + SANITY_CHECK(dst, 2e-5); } \ No newline at end of file diff --git a/modules/imgproc/perf/perf_integral.cpp b/modules/imgproc/perf/perf_integral.cpp index 1ae7108..c82f885 100644 --- a/modules/imgproc/perf/perf_integral.cpp +++ b/modules/imgproc/perf/perf_integral.cpp @@ -78,5 +78,5 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral_sqsum_tilted, SANITY_CHECK(sum, 1e-6); SANITY_CHECK(sqsum, 1e-6); - SANITY_CHECK(tilted, 1e-6); + SANITY_CHECK(tilted, 1e-6, tilted.depth() > CV_32S ? ERROR_RELATIVE : ERROR_ABSOLUTE); } -- 2.7.4