cudabgsegm module was not compiling. Changing all references of opencv2/legacy.hpp to opencv2/cudalegacy.hpp seemed to work.
I'm new at this so it would be good to have someone familiar with the build system confirm the change.
This commit is contained in:
parent
0e534b5a25
commit
b71744082b
@ -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;
|
|||||||
|
|
||||||
#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,
|
|||||||
}
|
}
|
||||||
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 @@
|
|||||||
|
|
||||||
#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;
|
|||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
// 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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user