Commit a57707b8 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov Committed by Vladislav Vinogradov

moved device layer to core module

parent 54511b41
set(the_description "The Core Functionality") set(the_description "The Core Functionality")
ocv_add_module(core ${ZLIB_LIBRARIES}) ocv_add_module(core ${ZLIB_LIBRARIES})
ocv_module_include_directories(${ZLIB_INCLUDE_DIR} "${OpenCV_SOURCE_DIR}/modules/gpu/include") ocv_module_include_directories(${ZLIB_INCLUDE_DIR})
if(HAVE_CUDA) if(HAVE_CUDA)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef) ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
endif() endif()
ocv_glob_module_sources(SOURCES "${opencv_core_BINARY_DIR}/version_string.inc") file(GLOB lib_device_hdrs "include/opencv2/${name}/device/*.hpp" "include/opencv2/${name}/device/*.h")
file(GLOB lib_device_hdrs_detail "include/opencv2/${name}/device/detail/*.hpp" "include/opencv2/${name}/device/detail/*.h")
ocv_glob_module_sources(SOURCES "${opencv_core_BINARY_DIR}/version_string.inc"
HEADERS ${lib_device_hdrs} ${lib_device_hdrs_detail})
ocv_create_module() ocv_create_module()
ocv_add_precompiled_headers(${the_module}) ocv_add_precompiled_headers(${the_module})
......
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
#ifndef __OPENCV_GPU_SCAN_HPP__ #ifndef __OPENCV_GPU_SCAN_HPP__
#define __OPENCV_GPU_SCAN_HPP__ #define __OPENCV_GPU_SCAN_HPP__
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/warp.hpp" #include "opencv2/core/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp" #include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
// //
//M*/ //M*/
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/type_traits.hpp" #include "opencv2/core/device/type_traits.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -8,8 +8,6 @@ ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video o ...@@ -8,8 +8,6 @@ ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video o
ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda") ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda")
file(GLOB lib_hdrs "include/opencv2/*.hpp" "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h") file(GLOB lib_hdrs "include/opencv2/*.hpp" "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
file(GLOB lib_device_hdrs "include/opencv2/${name}/device/*.hpp" "include/opencv2/${name}/device/*.h")
file(GLOB lib_device_hdrs_detail "include/opencv2/${name}/device/detail/*.hpp" "include/opencv2/${name}/device/detail/*.h")
file(GLOB lib_int_hdrs "src/*.hpp" "src/*.h") file(GLOB lib_int_hdrs "src/*.hpp" "src/*.h")
file(GLOB lib_cuda_hdrs "src/cuda/*.hpp" "src/cuda/*.h") file(GLOB lib_cuda_hdrs "src/cuda/*.hpp" "src/cuda/*.h")
file(GLOB lib_srcs "src/*.cpp") file(GLOB lib_srcs "src/*.cpp")
...@@ -64,7 +62,7 @@ else() ...@@ -64,7 +62,7 @@ else()
endif() endif()
ocv_set_module_sources( ocv_set_module_sources(
HEADERS ${lib_hdrs} ${lib_device_hdrs} ${lib_device_hdrs_detail} HEADERS ${lib_hdrs}
SOURCES ${lib_int_hdrs} ${lib_cuda_hdrs} ${lib_srcs} ${lib_cuda} ${ncv_files} ${cuda_objs} SOURCES ${lib_int_hdrs} ${lib_cuda_hdrs} ${lib_srcs} ${lib_cuda} ${ncv_files} ${cuda_objs}
) )
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device { namespace cv { namespace gpu { namespace device {
namespace video_decoding namespace video_decoding
......
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp" #include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp" #include "opencv2/core/device/datamov_utils.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp" #include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp" #include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp" #include "opencv2/core/device/datamov_utils.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp" #include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp" #include "opencv2/core/device/datamov_utils.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device { namespace cv { namespace gpu { namespace device {
namespace bgfg_gmg namespace bgfg_gmg
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu; using namespace cv::gpu;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
#include <utility> #include <utility>
#include <algorithm>//std::swap #include <algorithm>//std::swap
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp" #include "opencv2/core/device/emulation.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include <opencv2/gpu/device/common.hpp> #include <opencv2/core/device/common.hpp>
#include <opencv2/gpu/device/vec_traits.hpp> #include <opencv2/core/device/vec_traits.hpp>
#include <opencv2/gpu/device/vec_math.hpp> #include <opencv2/core/device/vec_math.hpp>
#include <opencv2/gpu/device/emulation.hpp> #include <opencv2/core/device/emulation.hpp>
#include <iostream> #include <iostream>
#include <stdio.h> #include <stdio.h>
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/emulation.hpp" #include "opencv2/core/device/emulation.hpp"
#include "opencv2/gpu/device/scan.hpp" #include "opencv2/core/device/scan.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/color.hpp" #include "opencv2/core/device/color.hpp"
#include "cvt_color_internal.h" #include "cvt_color_internal.h"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
......
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
// //
//M*/ //M*/
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/color.hpp" #include "opencv2/core/device/color.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/simd_functions.hpp" #include "opencv2/core/device/simd_functions.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "fgd_bgfg_common.hpp" #include "fgd_bgfg_common.hpp"
using namespace cv::gpu; using namespace cv::gpu;
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
#include <thrust/device_ptr.h> #include <thrust/device_ptr.h>
#include <thrust/sort.h> #include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include <thrust/device_ptr.h> #include <thrust/device_ptr.h>
#include <thrust/remove.h> #include <thrust/remove.h>
#include <thrust/functional.h> #include <thrust/functional.h>
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device { namespace globmotion { namespace cv { namespace gpu { namespace device { namespace globmotion {
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/emulation.hpp" #include "opencv2/core/device/emulation.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp" #include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -45,11 +45,11 @@ ...@@ -45,11 +45,11 @@
#include <thrust/device_ptr.h> #include <thrust/device_ptr.h>
#include <thrust/sort.h> #include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp" #include "opencv2/core/device/emulation.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/dynamic_smem.hpp" #include "opencv2/core/device/dynamic_smem.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "internal_shared.hpp" #include "internal_shared.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include "NPP_staging.hpp" #include "NPP_staging.hpp"
#include "opencv2/gpu/devmem2d.hpp" #include "opencv2/gpu/devmem2d.hpp"
#include "safe_call.hpp" #include "safe_call.hpp"
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu namespace cv { namespace gpu
{ {
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "lbp.hpp" #include "lbp.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#ifndef __OPENCV_GPU_DEVICE_LBP_HPP_ #ifndef __OPENCV_GPU_DEVICE_LBP_HPP_
#define __OPENCV_GPU_DEVICE_LBP_HPP_ #define __OPENCV_GPU_DEVICE_LBP_HPP_
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp" #include "opencv2/core/device/emulation.hpp"
namespace cv { namespace gpu { namespace device { namespace cv { namespace gpu { namespace device {
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,15 +42,15 @@ ...@@ -42,15 +42,15 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/type_traits.hpp" #include "opencv2/core/device/type_traits.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu; using namespace cv::gpu;
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#define tx threadIdx.x #define tx threadIdx.x
#define ty threadIdx.y #define ty threadIdx.y
......
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
#include <thrust/device_ptr.h> #include <thrust/device_ptr.h>
#include <thrust/sort.h> #include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp" #include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include <cfloat> #include <cfloat>
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp" #include "opencv2/core/device/filters.hpp"
#include "opencv2/gpu/device/scan.hpp" #include "opencv2/core/device/scan.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
// //
//M*/ //M*/
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
...@@ -42,12 +42,12 @@ ...@@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER #if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp" #include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp" #include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
#include "NPP_staging/NPP_staging.hpp" #include "NPP_staging/NPP_staging.hpp"
#include "NCVBroxOpticalFlow.hpp" #include "NCVBroxOpticalFlow.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
typedef NCVVectorAlloc<Ncv32f> FloatVector; typedef NCVVectorAlloc<Ncv32f> FloatVector;
......
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
#include "NPP_staging/NPP_staging.hpp" #include "NPP_staging/NPP_staging.hpp"
#include "NCVRuntimeTemplates.hpp" #include "NCVRuntimeTemplates.hpp"
#include "NCVHaarObjectDetection.hpp" #include "NCVHaarObjectDetection.hpp"
#include "opencv2/gpu/device/warp.hpp" #include "opencv2/core/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp" #include "opencv2/core/device/warp_shuffle.hpp"
//============================================================================== //==============================================================================
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
#include <vector> #include <vector>
#include <cuda_runtime.h> #include <cuda_runtime.h>
#include "NPP_staging.hpp" #include "NPP_staging.hpp"
#include "opencv2/gpu/device/warp.hpp" #include "opencv2/core/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp" #include "opencv2/core/device/warp_shuffle.hpp"
texture<Ncv8u, 1, cudaReadModeElementType> tex8u; texture<Ncv8u, 1, cudaReadModeElementType> tex8u;
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include "NCVAlg.hpp" #include "NCVAlg.hpp"
#include "NCVPyramid.hpp" #include "NCVPyramid.hpp"
#include "NCVPixelOperations.hpp" #include "NCVPixelOperations.hpp"
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
template<typename T, Ncv32u CN> struct __average4_CN {static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11);}; template<typename T, Ncv32u CN> struct __average4_CN {static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11);};
......
...@@ -44,13 +44,13 @@ ...@@ -44,13 +44,13 @@
#ifdef HAVE_OPENCV_GPU #ifdef HAVE_OPENCV_GPU
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp" #include "opencv2/core/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp" #include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/gpu/device/reduce.hpp" #include "opencv2/core/device/reduce.hpp"
#include "opencv2/gpu/device/utility.hpp" #include "opencv2/core/device/utility.hpp"
#include "opencv2/gpu/device/functional.hpp" #include "opencv2/core/device/functional.hpp"
#include "opencv2/gpu/device/filters.hpp" #include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#ifdef HAVE_OPENCV_GPU #ifdef HAVE_OPENCV_GPU
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device namespace cv { namespace gpu { namespace device
{ {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#if defined(HAVE_CUDA) #if defined(HAVE_CUDA)
#include "opencv2/core/stream_accessor.hpp" #include "opencv2/core/stream_accessor.hpp"
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
static inline void throw_nogpu() { CV_Error(CV_StsNotImplemented, "The called functionality is disabled for current build or platform"); } static inline void throw_nogpu() { CV_Error(CV_StsNotImplemented, "The called functionality is disabled for current build or platform"); }
#else #else
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#ifndef __OPENCV_ICF_HPP__ #ifndef __OPENCV_ICF_HPP__
#define __OPENCV_ICF_HPP__ #define __OPENCV_ICF_HPP__
// #include <opencv2/gpu/device/common.hpp>
#include "opencv2/core/cuda_devptrs.hpp" #include "opencv2/core/cuda_devptrs.hpp"
#include "cuda_runtime_api.h" #include "cuda_runtime_api.h"
...@@ -154,4 +153,4 @@ struct CascadeInvoker ...@@ -154,4 +153,4 @@ struct CascadeInvoker
}}} }}}
#endif #endif
\ No newline at end of file
...@@ -3,29 +3,5 @@ if(ANDROID OR IOS) ...@@ -3,29 +3,5 @@ if(ANDROID OR IOS)
endif() endif()
set(the_description "Super Resolution") set(the_description "Super Resolution")
ocv_add_module(superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui) ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 -Wundef)
ocv_module_include_directories() ocv_define_module(superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef /wd4127)
if(HAVE_CUDA)
ocv_source_group("Src\\Cuda" GLOB "src/cuda/*.cu")
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include" ${CUDA_INCLUDE_DIRS})
file(GLOB lib_cuda "src/cuda/*.cu")
ocv_cuda_compile(cuda_objs ${lib_cuda})
set(cuda_link_libs ${CUDA_LIBRARIES})
else()
set(lib_cuda "")
set(cuda_objs "")
set(cuda_link_libs "")
endif()
ocv_glob_module_sources(SOURCES ${lib_cuda} ${cuda_objs})
ocv_create_module(${cuda_link_libs})
ocv_add_precompiled_headers(${the_module})
ocv_add_accuracy_tests()
ocv_add_perf_tests()
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
// //
//M*/ //M*/
#include "opencv2/gpu/device/common.hpp" #include "opencv2/core/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp" #include "opencv2/core/device/transform.hpp"
#include "opencv2/gpu/device/vec_traits.hpp" #include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp" #include "opencv2/core/device/vec_math.hpp"
using namespace cv::gpu; using namespace cv::gpu;
using namespace cv::gpu::device; using namespace cv::gpu::device;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment