Fixes namespace error on cudaoptflow

pull/5087/head
Alex Torres 9 years ago
parent 2838ccc78e
commit 383b7e9dd1
  1. 12
      modules/cudaoptflow/src/tvl1flow.cpp

@ -42,15 +42,19 @@
#include "precomp.hpp" #include "precomp.hpp"
using namespace cv;
using namespace cv::cuda;
#if !defined HAVE_CUDA || defined(CUDA_DISABLER) #if !defined HAVE_CUDA || defined(CUDA_DISABLER)
Ptr<OpticalFlowDual_TVL1> cv::cuda::OpticalFlowDual_TVL1::create(double, double, double, int, int, double, int, double, double, bool) { throw_no_cuda(); return Ptr<OpticalFlowDual_TVL1>(); } cv::Ptr<cv::cuda::OpticalFlowDual_TVL1> cv::cuda::OpticalFlowDual_TVL1::create(double, double, double, int, int, double, int, double, double, bool)
{
throw_no_cuda();
return Ptr<cv::cuda::OpticalFlowDual_TVL1>();
}
#else #else
using namespace cv;
using namespace cv::cuda;
namespace tvl1flow namespace tvl1flow
{ {
void centeredGradient(PtrStepSzf src, PtrStepSzf dx, PtrStepSzf dy, cudaStream_t stream); void centeredGradient(PtrStepSzf src, PtrStepSzf dx, PtrStepSzf dy, cudaStream_t stream);

Loading…
Cancel
Save