moved device layer to core module

pull/761/head
Vladislav Vinogradov 12 years ago committed by Vladislav Vinogradov
parent 54511b4198
commit a57707b8d8
  1. 8
      modules/core/CMakeLists.txt
  2. 0
      modules/core/include/opencv2/core/device/block.hpp
  3. 0
      modules/core/include/opencv2/core/device/border_interpolate.hpp
  4. 0
      modules/core/include/opencv2/core/device/color.hpp
  5. 0
      modules/core/include/opencv2/core/device/common.hpp
  6. 0
      modules/core/include/opencv2/core/device/datamov_utils.hpp
  7. 0
      modules/core/include/opencv2/core/device/detail/color_detail.hpp
  8. 0
      modules/core/include/opencv2/core/device/detail/reduce.hpp
  9. 0
      modules/core/include/opencv2/core/device/detail/reduce_key_val.hpp
  10. 0
      modules/core/include/opencv2/core/device/detail/transform_detail.hpp
  11. 0
      modules/core/include/opencv2/core/device/detail/type_traits_detail.hpp
  12. 0
      modules/core/include/opencv2/core/device/detail/vec_distance_detail.hpp
  13. 0
      modules/core/include/opencv2/core/device/dynamic_smem.hpp
  14. 0
      modules/core/include/opencv2/core/device/emulation.hpp
  15. 0
      modules/core/include/opencv2/core/device/filters.hpp
  16. 0
      modules/core/include/opencv2/core/device/funcattrib.hpp
  17. 0
      modules/core/include/opencv2/core/device/functional.hpp
  18. 0
      modules/core/include/opencv2/core/device/limits.hpp
  19. 0
      modules/core/include/opencv2/core/device/reduce.hpp
  20. 0
      modules/core/include/opencv2/core/device/saturate_cast.hpp
  21. 8
      modules/core/include/opencv2/core/device/scan.hpp
  22. 0
      modules/core/include/opencv2/core/device/simd_functions.hpp
  23. 0
      modules/core/include/opencv2/core/device/static_check.hpp
  24. 0
      modules/core/include/opencv2/core/device/transform.hpp
  25. 0
      modules/core/include/opencv2/core/device/type_traits.hpp
  26. 0
      modules/core/include/opencv2/core/device/utility.hpp
  27. 0
      modules/core/include/opencv2/core/device/vec_distance.hpp
  28. 0
      modules/core/include/opencv2/core/device/vec_math.hpp
  29. 0
      modules/core/include/opencv2/core/device/vec_traits.hpp
  30. 0
      modules/core/include/opencv2/core/device/warp.hpp
  31. 0
      modules/core/include/opencv2/core/device/warp_reduce.hpp
  32. 0
      modules/core/include/opencv2/core/device/warp_shuffle.hpp
  33. 8
      modules/core/src/cuda/matrix_operations.cu
  34. 4
      modules/gpu/CMakeLists.txt
  35. 2
      modules/gpu/src/cuda/NV12ToARGB.cu
  36. 14
      modules/gpu/src/cuda/bf_knnmatch.cu
  37. 12
      modules/gpu/src/cuda/bf_match.cu
  38. 10
      modules/gpu/src/cuda/bf_radius_match.cu
  39. 6
      modules/gpu/src/cuda/bgfg_gmg.cu
  40. 8
      modules/gpu/src/cuda/bgfg_mog.cu
  41. 8
      modules/gpu/src/cuda/bilateral_filter.cu
  42. 2
      modules/gpu/src/cuda/blend.cu
  43. 8
      modules/gpu/src/cuda/calib3d.cu
  44. 10
      modules/gpu/src/cuda/canny.cu
  45. 8
      modules/gpu/src/cuda/ccomponetns.cu
  46. 12
      modules/gpu/src/cuda/clahe.cu
  47. 6
      modules/gpu/src/cuda/color.cu
  48. 8
      modules/gpu/src/cuda/column_filter.h
  49. 4
      modules/gpu/src/cuda/copy_make_border.cu
  50. 12
      modules/gpu/src/cuda/debayer.cu
  51. 4
      modules/gpu/src/cuda/disp_bilateral_filter.cu
  52. 14
      modules/gpu/src/cuda/element_operations.cu
  53. 4
      modules/gpu/src/cuda/fast.cu
  54. 12
      modules/gpu/src/cuda/fgd_bgfg.cu
  55. 4
      modules/gpu/src/cuda/gftt.cu
  56. 2
      modules/gpu/src/cuda/global_motion.cu
  57. 8
      modules/gpu/src/cuda/hist.cu
  58. 8
      modules/gpu/src/cuda/hog.cu
  59. 10
      modules/gpu/src/cuda/hough.cu
  60. 10
      modules/gpu/src/cuda/imgproc.cu
  61. 2
      modules/gpu/src/cuda/integral_image.cu
  62. 2
      modules/gpu/src/cuda/internal_shared.hpp
  63. 4
      modules/gpu/src/cuda/lbp.cu
  64. 4
      modules/gpu/src/cuda/lbp.hpp
  65. 4
      modules/gpu/src/cuda/match_template.cu
  66. 2
      modules/gpu/src/cuda/mathfunc.cu
  67. 18
      modules/gpu/src/cuda/matrix_reductions.cu
  68. 12
      modules/gpu/src/cuda/nlm.cu
  69. 8
      modules/gpu/src/cuda/optflowbm.cu
  70. 2
      modules/gpu/src/cuda/optical_flow.cu
  71. 4
      modules/gpu/src/cuda/optical_flow_farneback.cu
  72. 6
      modules/gpu/src/cuda/orb.cu
  73. 10
      modules/gpu/src/cuda/pyr_down.cu
  74. 10
      modules/gpu/src/cuda/pyr_up.cu
  75. 12
      modules/gpu/src/cuda/pyrlk.cu
  76. 12
      modules/gpu/src/cuda/remap.cu
  77. 14
      modules/gpu/src/cuda/resize.cu
  78. 4
      modules/gpu/src/cuda/rgb_to_yv12.cu
  79. 8
      modules/gpu/src/cuda/row_filter.h
  80. 2
      modules/gpu/src/cuda/split_merge.cu
  81. 2
      modules/gpu/src/cuda/stereobm.cu
  82. 6
      modules/gpu/src/cuda/stereobp.cu
  83. 10
      modules/gpu/src/cuda/stereocsbp.cu
  84. 6
      modules/gpu/src/cuda/tvl1flow.cu
  85. 12
      modules/gpu/src/cuda/warp.cu
  86. 2
      modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu
  87. 4
      modules/gpu/src/nvidia/NCVHaarObjectDetection.cu
  88. 4
      modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu
  89. 2
      modules/gpu/src/nvidia/core/NCVPyramid.cu
  90. 14
      modules/nonfree/src/cuda/surf.cu
  91. 2
      modules/nonfree/src/cuda/vibe.cu
  92. 2
      modules/nonfree/src/precomp.hpp
  93. 1
      modules/softcascade/src/cuda_invoker.hpp
  94. 28
      modules/superres/CMakeLists.txt
  95. 8
      modules/superres/src/cuda/btv_l1_gpu.cu

@ -1,12 +1,16 @@
set(the_description "The Core Functionality")
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)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
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_add_precompiled_headers(${the_module})

@ -43,10 +43,10 @@
#ifndef __OPENCV_GPU_SCAN_HPP__
#define __OPENCV_GPU_SCAN_HPP__
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/warp.hpp"
#include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device
{

@ -40,10 +40,10 @@
//
//M*/
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/type_traits.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/type_traits.hpp"
namespace cv { namespace gpu { namespace device
{

@ -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")
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_cuda_hdrs "src/cuda/*.hpp" "src/cuda/*.h")
file(GLOB lib_srcs "src/*.cpp")
@ -64,7 +62,7 @@ else()
endif()
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}
)

@ -49,7 +49,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device {
namespace video_decoding

@ -42,13 +42,13 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/core/device/datamov_utils.hpp"
#include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/core/device/datamov_utils.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/vec_distance.hpp"
#include "opencv2/gpu/device/datamov_utils.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/vec_distance.hpp"
#include "opencv2/core/device/datamov_utils.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device {
namespace bgfg_gmg

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu;

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/reduce.hpp"
namespace cv { namespace gpu { namespace device
{

@ -44,11 +44,11 @@
#include <utility>
#include <algorithm>//std::swap
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/emulation.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/utility.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include <opencv2/gpu/device/common.hpp>
#include <opencv2/gpu/device/vec_traits.hpp>
#include <opencv2/gpu/device/vec_math.hpp>
#include <opencv2/gpu/device/emulation.hpp>
#include <opencv2/core/device/common.hpp>
#include <opencv2/core/device/vec_traits.hpp>
#include <opencv2/core/device/vec_math.hpp>
#include <opencv2/core/device/emulation.hpp>
#include <iostream>
#include <stdio.h>

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/emulation.hpp"
#include "opencv2/gpu/device/scan.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/emulation.hpp"
#include "opencv2/core/device/scan.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/color.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/color.hpp"
#include "cvt_color_internal.h"
namespace cv { namespace gpu { namespace device

@ -40,10 +40,10 @@
//
//M*/
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/color.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/color.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,13 +42,13 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/simd_functions.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/simd_functions.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/functional.hpp"
#include "fgd_bgfg_common.hpp"
using namespace cv::gpu;

@ -45,8 +45,8 @@
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
namespace cv { namespace gpu { namespace device
{

@ -45,7 +45,7 @@
#include <thrust/device_ptr.h>
#include <thrust/remove.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 {

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/emulation.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/emulation.hpp"
#include "opencv2/core/device/transform.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/warp_shuffle.hpp"
namespace cv { namespace gpu { namespace device
{

@ -45,11 +45,11 @@
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/dynamic_smem.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/emulation.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/dynamic_smem.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "internal_shared.hpp"
namespace cv { namespace gpu { namespace device

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -48,7 +48,7 @@
#include "NPP_staging.hpp"
#include "opencv2/gpu/devmem2d.hpp"
#include "safe_call.hpp"
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu
{

@ -43,8 +43,8 @@
#if !defined CUDA_DISABLER
#include "lbp.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device
{

@ -43,8 +43,8 @@
#ifndef __OPENCV_GPU_DEVICE_LBP_HPP_
#define __OPENCV_GPU_DEVICE_LBP_HPP_
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/emulation.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/emulation.hpp"
namespace cv { namespace gpu { namespace device {

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_math.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,15 +42,15 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/type_traits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/type_traits.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu;

@ -42,10 +42,10 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/reduce.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#define tx threadIdx.x
#define ty threadIdx.y

@ -45,9 +45,9 @@
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/functional.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/reduce.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device
{

@ -43,13 +43,13 @@
#if !defined CUDA_DISABLER
#include <cfloat>
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp"
#include "opencv2/gpu/device/scan.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/filters.hpp"
#include "opencv2/core/device/scan.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,8 +42,8 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/vec_traits.hpp"
namespace cv { namespace gpu { namespace device
{

@ -40,10 +40,10 @@
//
//M*/
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,7 +42,7 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/limits.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,11 +42,11 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/functional.hpp"
namespace cv { namespace gpu { namespace device
{

@ -42,9 +42,9 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/limits.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

@ -42,12 +42,12 @@
#if !defined CUDA_DISABLER
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/border_interpolate.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/filters.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/border_interpolate.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device
{

@ -65,7 +65,7 @@
#include "NPP_staging/NPP_staging.hpp"
#include "NCVBroxOpticalFlow.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/core/device/utility.hpp"
typedef NCVVectorAlloc<Ncv32f> FloatVector;

@ -66,8 +66,8 @@
#include "NPP_staging/NPP_staging.hpp"
#include "NCVRuntimeTemplates.hpp"
#include "NCVHaarObjectDetection.hpp"
#include "opencv2/gpu/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp"
#include "opencv2/core/device/warp.hpp"
#include "opencv2/core/device/warp_shuffle.hpp"
//==============================================================================

@ -45,8 +45,8 @@
#include <vector>
#include <cuda_runtime.h>
#include "NPP_staging.hpp"
#include "opencv2/gpu/device/warp.hpp"
#include "opencv2/gpu/device/warp_shuffle.hpp"
#include "opencv2/core/device/warp.hpp"
#include "opencv2/core/device/warp_shuffle.hpp"
texture<Ncv8u, 1, cudaReadModeElementType> tex8u;

@ -48,7 +48,7 @@
#include "NCVAlg.hpp"
#include "NCVPyramid.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);};

@ -44,13 +44,13 @@
#ifdef HAVE_OPENCV_GPU
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/reduce.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include "opencv2/gpu/device/filters.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/limits.hpp"
#include "opencv2/core/device/saturate_cast.hpp"
#include "opencv2/core/device/reduce.hpp"
#include "opencv2/core/device/utility.hpp"
#include "opencv2/core/device/functional.hpp"
#include "opencv2/core/device/filters.hpp"
namespace cv { namespace gpu { namespace device
{

@ -44,7 +44,7 @@
#ifdef HAVE_OPENCV_GPU
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/core/device/common.hpp"
namespace cv { namespace gpu { namespace device
{

@ -56,7 +56,7 @@
#if defined(HAVE_CUDA)
#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"); }
#else

@ -44,7 +44,6 @@
#ifndef __OPENCV_ICF_HPP__
#define __OPENCV_ICF_HPP__
// #include <opencv2/gpu/device/common.hpp>
#include "opencv2/core/cuda_devptrs.hpp"
#include "cuda_runtime_api.h"

@ -3,29 +3,5 @@ if(ANDROID OR IOS)
endif()
set(the_description "Super Resolution")
ocv_add_module(superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui)
ocv_module_include_directories()
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()
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 -Wundef)
ocv_define_module(superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui)

@ -40,10 +40,10 @@
//
//M*/
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/transform.hpp"
#include "opencv2/gpu/device/vec_traits.hpp"
#include "opencv2/gpu/device/vec_math.hpp"
#include "opencv2/core/device/common.hpp"
#include "opencv2/core/device/transform.hpp"
#include "opencv2/core/device/vec_traits.hpp"
#include "opencv2/core/device/vec_math.hpp"
using namespace cv::gpu;
using namespace cv::gpu::device;

Loading…
Cancel
Save