mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
remove cuda module
This commit is contained in:
@@ -673,7 +673,7 @@ int main(int argc, char* argv[])
|
||||
seam_finder = makePtr<detail::VoronoiSeamFinder>();
|
||||
else if (seam_find_type == "gc_color")
|
||||
{
|
||||
#ifdef HAVE_OPENCV_CUDA
|
||||
#ifdef HAVE_OPENCV_CUDALEGACY
|
||||
if (try_cuda && cuda::getCudaEnabledDeviceCount() > 0)
|
||||
seam_finder = makePtr<detail::GraphCutSeamFinderGpu>(GraphCutSeamFinderBase::COST_COLOR);
|
||||
else
|
||||
@@ -682,7 +682,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
else if (seam_find_type == "gc_colorgrad")
|
||||
{
|
||||
#ifdef HAVE_OPENCV_CUDA
|
||||
#ifdef HAVE_OPENCV_CUDALEGACY
|
||||
if (try_cuda && cuda::getCudaEnabledDeviceCount() > 0)
|
||||
seam_finder = makePtr<detail::GraphCutSeamFinderGpu>(GraphCutSeamFinderBase::COST_COLOR_GRAD);
|
||||
else
|
||||
|
||||
@@ -217,7 +217,7 @@ public:
|
||||
outlierRejector = tblor;
|
||||
}
|
||||
|
||||
#if defined(HAVE_OPENCV_CUDAIMGPROC) && defined(HAVE_OPENCV_CUDA) && defined(HAVE_OPENCV_CUDAOPTFLOW)
|
||||
#if defined(HAVE_OPENCV_CUDAIMGPROC) && defined(HAVE_OPENCV_CUDAOPTFLOW)
|
||||
if (gpu)
|
||||
{
|
||||
Ptr<KeypointBasedMotionEstimatorGpu> kbest = makePtr<KeypointBasedMotionEstimatorGpu>(est);
|
||||
@@ -258,7 +258,7 @@ public:
|
||||
outlierRejector = tblor;
|
||||
}
|
||||
|
||||
#if defined(HAVE_OPENCV_CUDAIMGPROC) && defined(HAVE_OPENCV_CUDA) && defined(HAVE_OPENCV_CUDAOPTFLOW)
|
||||
#if defined(HAVE_OPENCV_CUDAIMGPROC) && defined(HAVE_OPENCV_CUDAOPTFLOW)
|
||||
if (gpu)
|
||||
{
|
||||
Ptr<KeypointBasedMotionEstimatorGpu> kbest = makePtr<KeypointBasedMotionEstimatorGpu>(est);
|
||||
@@ -343,7 +343,6 @@ int main(int argc, const char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef HAVE_OPENCV_CUDA
|
||||
if (arg("gpu") == "yes")
|
||||
{
|
||||
cout << "initializing GPU..."; cout.flush();
|
||||
@@ -352,7 +351,6 @@ int main(int argc, const char **argv)
|
||||
deviceTmp.upload(hostTmp);
|
||||
cout << endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
StabilizerBase *stabilizer = 0;
|
||||
|
||||
@@ -421,7 +419,7 @@ int main(int argc, const char **argv)
|
||||
{
|
||||
Ptr<MoreAccurateMotionWobbleSuppressorBase> ws = makePtr<MoreAccurateMotionWobbleSuppressor>();
|
||||
if (arg("gpu") == "yes")
|
||||
#ifdef HAVE_OPENCV_CUDA
|
||||
#ifdef HAVE_OPENCV_CUDAWARPING
|
||||
ws = makePtr<MoreAccurateMotionWobbleSuppressorGpu>();
|
||||
#else
|
||||
throw runtime_error("OpenCV is built without CUDA support");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SET(OPENCV_CUDA_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc opencv_imgcodecs opencv_videoio opencv_highgui
|
||||
opencv_ml opencv_video opencv_objdetect opencv_features2d
|
||||
opencv_calib3d opencv_cuda opencv_superres
|
||||
opencv_calib3d opencv_superres
|
||||
opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc
|
||||
opencv_cudafeatures2d opencv_cudaoptflow opencv_cudabgsegm
|
||||
opencv_cudastereo opencv_cudalegacy opencv_cudaobjdetect)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include "performance.h"
|
||||
#include "opencv2/core/cuda.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <numeric>
|
||||
#include <string>
|
||||
#include <opencv2/core/utility.hpp>
|
||||
#include "opencv2/cuda.hpp"
|
||||
|
||||
#define TAB " "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user