removed legacy header
authorErnest Galbrun <ernest.galbrun@univ-lorraine.fr>
Mon, 28 Jul 2014 08:58:19 +0000 (10:58 +0200)
committerErnest Galbrun <ernest.galbrun@univ-lorraine.fr>
Mon, 28 Jul 2014 08:58:19 +0000 (10:58 +0200)
modules/cudaoptflow/perf/perf_optflow.cpp
modules/cudaoptflow/test/test_optflow.cpp

index 5562790..5aecbec 100644 (file)
@@ -41,7 +41,6 @@
 //M*/
 
 #include "perf_precomp.hpp"
-#include "opencv2/legacy.hpp"
 
 using namespace std;
 using namespace testing;
@@ -373,16 +372,7 @@ PERF_TEST_P(ImagePair, OpticalFlowDual_TVL1,
     }
     else
     {
-        cv::Mat flow;
-
-        cv::Ptr<cv::DenseOpticalFlow> alg = cv::createOptFlow_DualTVL1();
-        alg->set("medianFiltering", 1);
-        alg->set("innerIterations", 1);
-        alg->set("outerIterations", 300);
-
-        TEST_CYCLE() alg->calc(frame0, frame1, flow);
-
-        CPU_SANITY_CHECK(flow);
+        FAIL_NO_CPU();
     }
 }
 
index ca1bbcd..69c2d50 100644 (file)
@@ -41,7 +41,6 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/legacy.hpp"
 
 #ifdef HAVE_CUDA