Changed check condition in tests in case ipp disabled.
authorAlexander Karsakov <alexander.karsakov@itseez.com>
Tue, 6 May 2014 10:24:49 +0000 (14:24 +0400)
committerAlexander Karsakov <alexander.karsakov@itseez.com>
Tue, 6 May 2014 11:24:54 +0000 (15:24 +0400)
modules/imgproc/perf/perf_houghLines.cpp
modules/imgproc/test/test_houghLines.cpp

index 56b6387..a6e7e73 100644 (file)
@@ -15,8 +15,8 @@ PERF_TEST_P(Image_RhoStep_ThetaStep_Threshold, HoughLines,
             testing::Combine(
                 testing::Values( "cv/shared/pic5.png", "stitching/a1.png" ),
                 testing::Values( 1, 10 ),
-                testing::Values( 0.05, 0.1 ),
-                testing::Values( 80 , 150 )
+                testing::Values( 0.01, 0.1 ),
+                testing::Values( 300, 500 )
                 )
             )
 {
@@ -29,13 +29,17 @@ PERF_TEST_P(Image_RhoStep_ThetaStep_Threshold, HoughLines,
     if (image.empty())
         FAIL() << "Unable to load source image" << filename;
 
-    Canny(image, image, 100, 150, 3);
+    Canny(image, image, 0, 0);
 
     Mat lines;
     declare.time(60);
 
     TEST_CYCLE() HoughLines(image, lines, rhoStep, thetaStep, threshold);
 
-    EXPECT_FALSE(lines.empty());
+    transpose(lines, lines);
+#if (0 && defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY) && IPP_VERSION_X100 >= 801)
     SANITY_CHECK_NOTHING();
+#else
+    SANITY_CHECK(lines);
+#endif
 }
index df85dc1..fd9783b 100644 (file)
@@ -189,7 +189,11 @@ void BaseHoughLineTest::run_test(int type)
     else if (type == PROBABILISTIC)
         count = countMatIntersection<Vec4i>(exp_lines, lines, 1e-4f, 0.f);
 
+#if (0 && defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY) && IPP_VERSION_X100 >= 801)
     EXPECT_GE( count, (int) (exp_lines.total() * 0.8) );
+#else
+    EXPECT_EQ( count, (int) exp_lines.total());
+#endif
 }
 
 TEST_P(StandartHoughLinesTest, regression)