mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Revert "Merge pull request #836 from jet47:gpu-modules"
This reverts commitfba72cb60d, reversing changes made to02131ffb62.
This commit is contained in:
@@ -50,7 +50,7 @@ using namespace cv::gpu;
|
||||
using namespace cv::superres;
|
||||
using namespace cv::superres::detail;
|
||||
|
||||
#if !defined(HAVE_CUDA) || !defined(HAVE_OPENCV_GPUARITHM) || !defined(HAVE_OPENCV_GPUWARPING) || !defined(HAVE_OPENCV_GPUFILTERS)
|
||||
#if !defined(HAVE_CUDA) || !defined(HAVE_OPENCV_GPU)
|
||||
|
||||
Ptr<SuperResolution> cv::superres::createSuperResolution_BTVL1_GPU()
|
||||
{
|
||||
@@ -266,12 +266,7 @@ namespace
|
||||
btvKernelSize_ = 7;
|
||||
blurKernelSize_ = 5;
|
||||
blurSigma_ = 0.0;
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUOPTFLOW
|
||||
opticalFlow_ = createOptFlow_Farneback_GPU();
|
||||
#else
|
||||
opticalFlow_ = createOptFlow_Farneback();
|
||||
#endif
|
||||
|
||||
curBlurKernelSize_ = -1;
|
||||
curBlurSigma_ = -1.0;
|
||||
|
||||
@@ -40,10 +40,6 @@
|
||||
//
|
||||
//M*/
|
||||
|
||||
#include "opencv2/opencv_modules.hpp"
|
||||
|
||||
#if defined(HAVE_OPENCV_GPUARITHM) && defined(HAVE_OPENCV_GPUWARPING) && defined(HAVE_OPENCV_GPUFILTERS)
|
||||
|
||||
#include "opencv2/core/cuda/common.hpp"
|
||||
#include "opencv2/core/cuda/transform.hpp"
|
||||
#include "opencv2/core/cuda/vec_traits.hpp"
|
||||
@@ -236,5 +232,3 @@ namespace btv_l1_cudev
|
||||
template void calcBtvRegularization<3>(PtrStepSzb src, PtrStepSzb dst, int ksize);
|
||||
template void calcBtvRegularization<4>(PtrStepSzb src, PtrStepSzb dst, int ksize);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -187,7 +187,7 @@ Ptr<FrameSource> cv::superres::createFrameSource_Camera(int deviceId)
|
||||
//////////////////////////////////////////////////////
|
||||
// VideoFrameSource_GPU
|
||||
|
||||
#ifndef HAVE_OPENCV_GPUCODEC
|
||||
#ifndef HAVE_OPENCV_GPU
|
||||
|
||||
Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileName)
|
||||
{
|
||||
@@ -196,7 +196,7 @@ Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileNam
|
||||
return Ptr<FrameSource>();
|
||||
}
|
||||
|
||||
#else // HAVE_OPENCV_GPUCODEC
|
||||
#else // HAVE_OPENCV_GPU
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -250,4 +250,4 @@ Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileNam
|
||||
return new VideoFrameSource(fileName);
|
||||
}
|
||||
|
||||
#endif // HAVE_OPENCV_GPUCODEC
|
||||
#endif // HAVE_OPENCV_GPU
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace
|
||||
switch (src.kind())
|
||||
{
|
||||
case _InputArray::GPU_MAT:
|
||||
#ifdef HAVE_OPENCV_GPUIMGPROC
|
||||
#ifdef HAVE_OPENCV_GPU
|
||||
gpu::cvtColor(src.getGpuMat(), dst.getGpuMatRef(), code, cn);
|
||||
#else
|
||||
CV_Error(cv::Error::StsNotImplemented, "The called functionality is disabled for current build or platform");
|
||||
|
||||
@@ -343,7 +343,7 @@ Ptr<DenseOpticalFlowExt> cv::superres::createOptFlow_DualTVL1()
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// GpuOpticalFlow
|
||||
|
||||
#ifndef HAVE_OPENCV_GPUOPTFLOW
|
||||
#ifndef HAVE_OPENCV_GPU
|
||||
|
||||
Ptr<DenseOpticalFlowExt> cv::superres::createOptFlow_Farneback_GPU()
|
||||
{
|
||||
@@ -369,7 +369,7 @@ Ptr<DenseOpticalFlowExt> cv::superres::createOptFlow_PyrLK_GPU()
|
||||
return Ptr<DenseOpticalFlowExt>();
|
||||
}
|
||||
|
||||
#else // HAVE_OPENCV_GPUOPTFLOW
|
||||
#else // HAVE_OPENCV_GPU
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -717,4 +717,4 @@ Ptr<DenseOpticalFlowExt> cv::superres::createOptFlow_DualTVL1_GPU()
|
||||
return new DualTVL1_GPU;
|
||||
}
|
||||
|
||||
#endif // HAVE_OPENCV_GPUOPTFLOW
|
||||
#endif // HAVE_OPENCV_GPU
|
||||
|
||||
@@ -55,30 +55,9 @@
|
||||
#include "opencv2/video/tracking.hpp"
|
||||
#include "opencv2/core/private.hpp"
|
||||
|
||||
#include "opencv2/core/gpu_private.hpp"
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUARITHM
|
||||
# include "opencv2/gpuarithm.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUWARPING
|
||||
# include "opencv2/gpuwarping.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUFILTERS
|
||||
# include "opencv2/gpufilters.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUIMGPROC
|
||||
# include "opencv2/gpuimgproc.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUOPTFLOW
|
||||
# include "opencv2/gpuoptflow.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_GPUCODEC
|
||||
# include "opencv2/gpucodec.hpp"
|
||||
#ifdef HAVE_OPENCV_GPU
|
||||
# include "opencv2/gpu.hpp"
|
||||
# include "opencv2/core/gpu_private.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_OPENCV_HIGHGUI
|
||||
|
||||
Reference in New Issue
Block a user