fix inclusion of OpenCV header opencv.hpp
authorStevenPuttemans <steven.puttemans@kuleuven.be>
Tue, 9 Aug 2016 09:30:38 +0000 (11:30 +0200)
committerStevenPuttemans <steven.puttemans@kuleuven.be>
Tue, 9 Aug 2016 11:45:10 +0000 (13:45 +0200)
cudev (only for use in .cu files) & cudalegacy (only legacy code) not included

include/opencv2/opencv.hpp

index 93a87bc..9037053 100644 (file)
@@ -52,7 +52,6 @@
 #include "opencv2/core.hpp"
 
 // Then the optional modules are checked
-// REMARK: keep the includes ordened as the module order on the GitHub repo
 #ifdef HAVE_OPENCV_CALIB3D
 #include "opencv2/calib3d.hpp"
 #endif
 #include "opencv2/viz.hpp"
 #endif
 
+// Finally CUDA specific entries are checked and added
+#ifdef HAVE_OPENCV_CUDAARITHM
+#include "opencv2/cudaarithm.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDABGSEGM
+#include "opencv2/cudabgsegm.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDACODEC
+#include "opencv2/cudacodec.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAFEATURES2D
+#include "opencv2/cudafeatures2d.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAFILTERS
+#include "opencv2/cudafilters.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAIMGPROC
+#include "opencv2/cudaimgproc.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAOBJDETECT
+#include "opencv2/cudaobjdetect.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAOPTFLOW
+#include "opencv2/cudaoptflow.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDASTEREO
+#include "opencv2/cudastereo.hpp"
+#endif
+#ifdef HAVE_OPENCV_CUDAWARPING
+#include "opencv2/cudawarping.hpp"
+#endif
+
 #endif