cudabgsegm module was not compiling. Changing all references of opencv2/legacy.hpp...
authorDavid Bradley <dbradley@NREC-014667.(none)>
Thu, 3 Jul 2014 19:15:23 +0000 (15:15 -0400)
committerDavid Bradley <dbradley@NREC-014667.(none)>
Thu, 3 Jul 2014 19:15:23 +0000 (15:15 -0400)
I'm new at this so it would be good to have someone familiar with the build system confirm the change.

modules/cudabgsegm/perf/perf_bgsegm.cpp
modules/cudabgsegm/test/test_bgsegm.cpp

index 9d3da29..02fc9a8 100644 (file)
@@ -42,8 +42,8 @@
 
 #include "perf_precomp.hpp"
 
-#ifdef HAVE_OPENCV_LEGACY
-#  include "opencv2/legacy.hpp"
+#ifdef HAVE_OPENCV_CUDALEGACY
+#  include "opencv2/cudalegacy.hpp"
 #endif
 
 #ifdef HAVE_OPENCV_CUDAIMGPROC
@@ -72,7 +72,7 @@ using namespace perf;
 
 #if BUILD_WITH_VIDEO_INPUT_SUPPORT
 
-#ifdef HAVE_OPENCV_LEGACY
+#ifdef HAVE_OPENCV_CUDALEGACY
 
 namespace cv
 {
@@ -150,7 +150,7 @@ PERF_TEST_P(Video, FGDStatModel,
     }
     else
     {
-#ifdef HAVE_OPENCV_LEGACY
+#ifdef HAVE_OPENCV_CUDALEGACY
         IplImage ipl_frame = frame;
         cv::Ptr<CvBGStatModel> model(cvCreateFGDStatModel(&ipl_frame));
 
index 75d6d73..34f3dcc 100644 (file)
@@ -42,8 +42,8 @@
 
 #include "test_precomp.hpp"
 
-#ifdef HAVE_OPENCV_LEGACY
-#  include "opencv2/legacy.hpp"
+#ifdef HAVE_OPENCV_CUDALEGACY
+#  include "opencv2/cudalegacy.hpp"
 #endif
 
 #ifdef HAVE_CUDA
@@ -66,7 +66,7 @@ using namespace cvtest;
 //////////////////////////////////////////////////////
 // FGDStatModel
 
-#if BUILD_WITH_VIDEO_INPUT_SUPPORT && defined(HAVE_OPENCV_LEGACY)
+#if BUILD_WITH_VIDEO_INPUT_SUPPORT && defined(HAVE_OPENCV_CUDALEGACY)
 
 namespace cv
 {