removed compatibility headers
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 23 Jul 2013 09:19:54 +0000 (13:19 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 2 Sep 2013 10:00:42 +0000 (14:00 +0400)
20 files changed:
modules/gpu/include/opencv2/gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp [deleted file]
samples/gpu/alpha_comp.cpp
samples/gpu/bgfg_segm.cpp
samples/gpu/brox_optical_flow.cpp
samples/gpu/cascadeclassifier.cpp
samples/gpu/cascadeclassifier_nvidia_api.cpp
samples/gpu/driver_api_multi.cpp
samples/gpu/driver_api_stereo_multi.cpp
samples/gpu/farneback_optical_flow.cpp
samples/gpu/hog.cpp
samples/gpu/houghlines.cpp
samples/gpu/multi.cpp
samples/gpu/optical_flow.cpp
samples/gpu/opticalflow_nvidia_api.cpp
samples/gpu/performance/tests.cpp
samples/gpu/pyrlk_optical_flow.cpp
samples/gpu/stereo_match.cpp
samples/gpu/stereo_multi.cpp
samples/gpu/surf_keypoint_matcher.cpp

index ec59f57..0b58825 100644 (file)
 
 #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 //////////////
diff --git a/modules/gpu/include/opencv2/gpu/gpu.hpp b/modules/gpu/include/opencv2/gpu/gpu.hpp
deleted file mode 100644 (file)
index e044ad1..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*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"
index 1193b11..a59f559 100644 (file)
@@ -2,7 +2,7 @@
 
 #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;
index 28d1900..0e06b7f 100644 (file)
@@ -3,15 +3,10 @@
 
 #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;
index b5522d5..7bcc509 100644 (file)
@@ -6,7 +6,9 @@
 #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;
@@ -161,7 +163,7 @@ int main(int argc, const char* argv[])
             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));
 
index 56b70a2..be42de8 100644 (file)
@@ -10,7 +10,9 @@
 #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;
index bd65271..6db0376 100644 (file)
@@ -6,14 +6,12 @@
 #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;
index ee6de77..6508dad 100644 (file)
@@ -9,7 +9,7 @@
 #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"
index 0e5fe8a..546ac18 100644 (file)
@@ -11,7 +11,7 @@
 #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"
index c47d7a2..d90acd7 100644 (file)
@@ -6,7 +6,7 @@
 #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;
index 52afd64..3288c67 100644 (file)
@@ -8,6 +8,7 @@
 #include "opencv2/gpu.hpp"
 #include "opencv2/highgui.hpp"
 #include "opencv2/objdetect.hpp"
+#include "opencv2/imgproc.hpp"
 
 using namespace std;
 using namespace cv;
index f7c7e21..a789fd1 100644 (file)
@@ -5,7 +5,7 @@
 #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;
index f6c9e01..c6744c5 100644 (file)
@@ -9,7 +9,7 @@
 #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"
index d0b736a..63b93fe 100644 (file)
@@ -4,7 +4,7 @@
 #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;
index 91939fd..39033f7 100644 (file)
 #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** )
 {
index 47569a2..7747128 100644 (file)
@@ -4,11 +4,19 @@
 #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"
index 7fc44f0..a7ac194 100644 (file)
@@ -6,7 +6,8 @@
 #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;
index 1721ffb..fc7d092 100644 (file)
@@ -4,8 +4,9 @@
 #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;
index 75f2215..2d410d3 100644 (file)
@@ -9,9 +9,9 @@
 
 #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"
index a442c44..a05bfe4 100644 (file)
@@ -7,7 +7,7 @@
 #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;