Set sanity thresholds for several performance tests
authorAndrey Kamaev <no@email>
Fri, 20 Apr 2012 15:33:34 +0000 (15:33 +0000)
committerAndrey Kamaev <no@email>
Fri, 20 Apr 2012 15:33:34 +0000 (15:33 +0000)
modules/imgproc/perf/perf_blur.cpp
modules/imgproc/perf/perf_cornerEigenValsAndVecs.cpp
modules/imgproc/perf/perf_integral.cpp

index 5c27747..1fc668c 100644 (file)
@@ -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);
 }
index a7475fa..3e5f207 100644 (file)
@@ -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
index 1ae7108..c82f885 100644 (file)
@@ -78,5 +78,5 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral_sqsum_tilted,
     \r
     SANITY_CHECK(sum, 1e-6);\r
     SANITY_CHECK(sqsum, 1e-6);\r
-    SANITY_CHECK(tilted, 1e-6);\r
+    SANITY_CHECK(tilted, 1e-6, tilted.depth() > CV_32S ? ERROR_RELATIVE : ERROR_ABSOLUTE);\r
 }\r