提交 dce1824a 编写于 作者: V Vadim Pisarevsky

Merge pull request #2940 from davembradley:master

...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#include "perf_precomp.hpp" #include "perf_precomp.hpp"
#ifdef HAVE_OPENCV_LEGACY #ifdef HAVE_OPENCV_CUDALEGACY
# include "opencv2/legacy.hpp" # include "opencv2/cudalegacy.hpp"
#endif #endif
#ifdef HAVE_OPENCV_CUDAIMGPROC #ifdef HAVE_OPENCV_CUDAIMGPROC
...@@ -72,7 +72,7 @@ using namespace perf; ...@@ -72,7 +72,7 @@ using namespace perf;
#if BUILD_WITH_VIDEO_INPUT_SUPPORT #if BUILD_WITH_VIDEO_INPUT_SUPPORT
#ifdef HAVE_OPENCV_LEGACY #ifdef HAVE_OPENCV_CUDALEGACY
namespace cv namespace cv
{ {
...@@ -150,7 +150,7 @@ PERF_TEST_P(Video, FGDStatModel, ...@@ -150,7 +150,7 @@ PERF_TEST_P(Video, FGDStatModel,
} }
else else
{ {
#ifdef HAVE_OPENCV_LEGACY #ifdef HAVE_OPENCV_CUDALEGACY
IplImage ipl_frame = frame; IplImage ipl_frame = frame;
cv::Ptr<CvBGStatModel> model(cvCreateFGDStatModel(&ipl_frame)); cv::Ptr<CvBGStatModel> model(cvCreateFGDStatModel(&ipl_frame));
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#ifdef HAVE_OPENCV_LEGACY #ifdef HAVE_OPENCV_CUDALEGACY
# include "opencv2/legacy.hpp" # include "opencv2/cudalegacy.hpp"
#endif #endif
#ifdef HAVE_CUDA #ifdef HAVE_CUDA
...@@ -66,7 +66,7 @@ using namespace cvtest; ...@@ -66,7 +66,7 @@ using namespace cvtest;
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
// FGDStatModel // FGDStatModel
#if BUILD_WITH_VIDEO_INPUT_SUPPORT && defined(HAVE_OPENCV_LEGACY) #if BUILD_WITH_VIDEO_INPUT_SUPPORT && defined(HAVE_OPENCV_CUDALEGACY)
namespace cv namespace cv
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册