#include "opencv2/core/gpu.hpp"
-#if !defined(__OPENCV_BUILD) && !defined(OPENCV_GPU_SKIP_INCLUDE)
- #include "opencv2/opencv_modules.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_GPUFEATURES2D
- #include "opencv2/gpufeatures2d.hpp"
- #endif
-
- #ifdef HAVE_OPENCV_GPUOPTFLOW
- #include "opencv2/gpuoptflow.hpp"
- #endif
-
- #ifdef HAVE_OPENCV_GPUBGSEGM
- #include "opencv2/gpubgsegm.hpp"
- #endif
-
- #ifdef HAVE_OPENCV_GPUSTEREO
- #include "opencv2/gpustereo.hpp"
- #endif
-
- #ifdef HAVE_OPENCV_GPUCODEC
- #include "opencv2/gpucodec.hpp"
- #endif
-#endif
-
namespace cv { namespace cuda {
//////////////// HOG (Histogram-of-Oriented-Gradients) Descriptor and Object Detector //////////////
+++ /dev/null
-/*M///////////////////////////////////////////////////////////////////////////////////////
-//
-// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
-//
-// By downloading, copying, installing or using the software you agree to this license.
-// If you do not agree to this license, do not download, install,
-// copy or use the software.
-//
-//
-// License Agreement
-// For Open Source Computer Vision Library
-//
-// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
-// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
-// Copyright (C) 2013, OpenCV Foundation, all rights reserved.
-// Third party copyrights are property of their respective owners.
-//
-// Redistribution and use in source and binary forms, with or without modification,
-// are permitted provided that the following conditions are met:
-//
-// * Redistribution's of source code must retain the above copyright notice,
-// this list of conditions and the following disclaimer.
-//
-// * Redistribution's in binary form must reproduce the above copyright notice,
-// this list of conditions and the following disclaimer in the documentation
-// and/or other materials provided with the distribution.
-//
-// * The name of the copyright holders may not be used to endorse or promote products
-// derived from this software without specific prior written permission.
-//
-// This software is provided by the copyright holders and contributors "as is" and
-// any express or implied warranties, including, but not limited to, the implied
-// warranties of merchantability and fitness for a particular purpose are disclaimed.
-// In no event shall the Intel Corporation or contributors be liable for any direct,
-// indirect, incidental, special, exemplary, or consequential damages
-// (including, but not limited to, procurement of substitute goods or services;
-// loss of use, data, or profits; or business interruption) however caused
-// and on any theory of liability, whether in contract, strict liability,
-// or tort (including negligence or otherwise) arising in any way out of
-// the use of this software, even if advised of the possibility of such damage.
-//
-//M*/
-
-#ifdef __OPENCV_BUILD
-#error this is a compatibility header which should not be used inside the OpenCV library
-#endif
-
-#include "opencv2/gpu.hpp"
#include "opencv2/core/opengl.hpp"
#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpuimgproc.hpp"
using namespace std;
using namespace cv;
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpubgsegm.hpp"
+#include "opencv2/video.hpp"
#include "opencv2/highgui.hpp"
-#include "opencv2/opencv_modules.hpp"
-
-#ifdef HAVE_OPENCV_NONFREE
-# include "opencv2/nonfree/gpu.hpp"
-#endif
-
using namespace std;
using namespace cv;
using namespace cv::cuda;
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/highgui.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/gpuoptflow.hpp"
+#include "opencv2/gpuarithm.hpp"
using namespace std;
using namespace cv;
interpolateFrames(d_r, d_rt, d_fu, d_fv, d_bu, d_bv, timePos, d_rNew, d_buf);
GpuMat channels3[] = {d_bNew, d_gNew, d_rNew};
- merge(channels3, 3, d_newFrame);
+ cuda::merge(channels3, 3, d_newFrame);
frames.push_back(Mat(d_newFrame));
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpu.hpp"
+#include "opencv2/gpuimgproc.hpp"
+#include "opencv2/gpuwarping.hpp"
using namespace std;
using namespace cv;
#include <iostream>
#include <iomanip>
#include <cstdio>
-#include "opencv2/gpu/gpu.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/objdetect/objdetect.hpp"
-#include "opencv2/objdetect/objdetect_c.h"
-
-#ifdef HAVE_CUDA
+#include "opencv2/core/gpu.hpp"
#include "opencv2/gpulegacy.hpp"
-#endif
+#include "opencv2/highgui.hpp"
+#include "opencv2/imgproc.hpp"
+#include "opencv2/objdetect.hpp"
+#include "opencv2/objdetect/objdetect_c.h"
using namespace std;
using namespace cv;
#include <iostream>
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpuarithm.hpp"
#ifdef HAVE_TBB
# include "tbb/tbb_stddef.h"
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpustereo.hpp"
#ifdef HAVE_TBB
# include "tbb/tbb_stddef.h"
#include "opencv2/core/utility.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/video.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpuoptflow.hpp"
using namespace std;
using namespace cv;
#include "opencv2/gpu.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
using namespace std;
using namespace cv;
#include <opencv2/core/utility.hpp>
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpuimgproc.hpp"
using namespace std;
using namespace cv;
#include <iostream>
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpuarithm.hpp"
#ifdef HAVE_TBB
# include "tbb/tbb_stddef.h"
#include "opencv2/core.hpp"
#include <opencv2/core/utility.hpp>
#include "opencv2/highgui.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpuoptflow.hpp"
using namespace std;
using namespace cv;
#include "cvconfig.h"
#include <iostream>
#include <iomanip>
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/core/gpu.hpp"
+#include "opencv2/gpulegacy.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/highgui/highgui_c.h"
-#ifdef HAVE_CUDA
-#include "opencv2/gpulegacy.hpp"
-#endif
-
#if !defined(HAVE_CUDA)
int main( int, const char** )
{
#include "opencv2/calib3d.hpp"
#include "opencv2/video.hpp"
#include "opencv2/gpu.hpp"
+#include "opencv2/gpuimgproc.hpp"
+#include "opencv2/gpuarithm.hpp"
+#include "opencv2/gpuwarping.hpp"
+#include "opencv2/gpufeatures2d.hpp"
+#include "opencv2/gpufilters.hpp"
+#include "opencv2/gpuoptflow.hpp"
+#include "opencv2/gpubgsegm.hpp"
#include "opencv2/legacy.hpp"
#include "performance.h"
#include "opencv2/opencv_modules.hpp"
+
#ifdef HAVE_OPENCV_NONFREE
#include "opencv2/nonfree/gpu.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/video.hpp"
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpuoptflow.hpp"
+#include "opencv2/gpuimgproc.hpp"
using namespace std;
using namespace cv;
#include <iomanip>
#include <stdexcept>
#include <opencv2/core/utility.hpp>
-#include "opencv2/gpu.hpp"
+#include "opencv2/gpustereo.hpp"
#include "opencv2/highgui.hpp"
+#include "opencv2/imgproc.hpp"
using namespace cv;
using namespace std;
#include <iostream>
#include "cvconfig.h"
-#include "opencv2/core/core.hpp"
-#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/core.hpp"
+#include "opencv2/highgui.hpp"
+#include "opencv2/gpustereo.hpp"
#ifdef HAVE_TBB
# include "tbb/tbb_stddef.h"
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
-#include "opencv2/gpu/gpu.hpp"
+#include "opencv2/gpufeatures2d.hpp"
#include "opencv2/nonfree/gpu.hpp"
using namespace std;