disable cuda::OpticalFlowNeedleMap if configured without cudaimgproc

disable cuda::FastOpticalFlowBM if configured without cudaarithm
pull/3868/head
Dikay900 10 years ago
parent f6c561a01b
commit 3465cef689
  1. 2
      modules/cudalegacy/src/bm_fast.cpp
  2. 2
      modules/cudalegacy/src/needle_map.cpp

@ -45,7 +45,7 @@
using namespace cv;
using namespace cv::cuda;
#if !defined HAVE_CUDA || defined(CUDA_DISABLER)
#if !defined HAVE_CUDA || !defined(HAVE_OPENCV_CUDAARITHM) || defined(CUDA_DISABLER)
void cv::cuda::FastOpticalFlowBM::operator ()(const GpuMat&, const GpuMat&, GpuMat&, GpuMat&, int, int, Stream&) { throw_no_cuda(); }

@ -45,7 +45,7 @@
using namespace cv;
using namespace cv::cuda;
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
#if !defined (HAVE_CUDA) || !defined(HAVE_OPENCV_CUDAIMGPROC) || defined (CUDA_DISABLER)
void cv::cuda::createOpticalFlowNeedleMap(const GpuMat&, const GpuMat&, GpuMat&, GpuMat&) { throw_no_cuda(); }

Loading…
Cancel
Save