renamed gpunvidia -> gpulegacy

pull/836/head
Vladislav Vinogradov 12 years ago
parent 7e91e1871d
commit 508fb6aa5b
  1. 2
      modules/gpuarithm/CMakeLists.txt
  2. 4
      modules/gpuarithm/src/arithm.cpp
  3. 6
      modules/gpuarithm/src/precomp.hpp
  4. 9
      modules/gpulegacy/CMakeLists.txt
  5. 16
      modules/gpulegacy/include/opencv2/gpulegacy.hpp
  6. 0
      modules/gpulegacy/include/opencv2/gpulegacy/NCV.hpp
  7. 2
      modules/gpulegacy/include/opencv2/gpulegacy/NCVBroxOpticalFlow.hpp
  8. 2
      modules/gpulegacy/include/opencv2/gpulegacy/NCVHaarObjectDetection.hpp
  9. 12
      modules/gpulegacy/include/opencv2/gpulegacy/NCVPyramid.hpp
  10. 2
      modules/gpulegacy/include/opencv2/gpulegacy/NPP_staging.hpp
  11. 10
      modules/gpulegacy/include/opencv2/gpulegacy/private.hpp
  12. 0
      modules/gpulegacy/src/NCV.cpp
  13. 2
      modules/gpulegacy/src/cuda/NCV.cu
  14. 2
      modules/gpulegacy/src/cuda/NCVAlg.hpp
  15. 4
      modules/gpulegacy/src/cuda/NCVBroxOpticalFlow.cu
  16. 0
      modules/gpulegacy/src/cuda/NCVColorConversion.hpp
  17. 6
      modules/gpulegacy/src/cuda/NCVHaarObjectDetection.cu
  18. 2
      modules/gpulegacy/src/cuda/NCVPixelOperations.hpp
  19. 4
      modules/gpulegacy/src/cuda/NCVPyramid.cu
  20. 0
      modules/gpulegacy/src/cuda/NCVRuntimeTemplates.hpp
  21. 2
      modules/gpulegacy/src/cuda/NPP_staging.cu
  22. 0
      modules/gpulegacy/src/precomp.cpp
  23. 4
      modules/gpulegacy/src/precomp.hpp
  24. 0
      modules/gpulegacy/test/NCVAutoTestLister.hpp
  25. 2
      modules/gpulegacy/test/NCVTest.hpp
  26. 2
      modules/gpulegacy/test/NCVTestSourceProvider.hpp
  27. 0
      modules/gpulegacy/test/TestCompact.cpp
  28. 0
      modules/gpulegacy/test/TestCompact.h
  29. 0
      modules/gpulegacy/test/TestDrawRects.cpp
  30. 0
      modules/gpulegacy/test/TestDrawRects.h
  31. 0
      modules/gpulegacy/test/TestHaarCascadeApplication.cpp
  32. 0
      modules/gpulegacy/test/TestHaarCascadeApplication.h
  33. 0
      modules/gpulegacy/test/TestHaarCascadeLoader.cpp
  34. 0
      modules/gpulegacy/test/TestHaarCascadeLoader.h
  35. 0
      modules/gpulegacy/test/TestHypothesesFilter.cpp
  36. 0
      modules/gpulegacy/test/TestHypothesesFilter.h
  37. 0
      modules/gpulegacy/test/TestHypothesesGrow.cpp
  38. 0
      modules/gpulegacy/test/TestHypothesesGrow.h
  39. 0
      modules/gpulegacy/test/TestIntegralImage.cpp
  40. 0
      modules/gpulegacy/test/TestIntegralImage.h
  41. 0
      modules/gpulegacy/test/TestIntegralImageSquared.cpp
  42. 0
      modules/gpulegacy/test/TestIntegralImageSquared.h
  43. 0
      modules/gpulegacy/test/TestRectStdDev.cpp
  44. 0
      modules/gpulegacy/test/TestRectStdDev.h
  45. 0
      modules/gpulegacy/test/TestResize.cpp
  46. 0
      modules/gpulegacy/test/TestResize.h
  47. 0
      modules/gpulegacy/test/TestTranspose.cpp
  48. 0
      modules/gpulegacy/test/TestTranspose.h
  49. 0
      modules/gpulegacy/test/main_nvidia.cpp
  50. 0
      modules/gpulegacy/test/main_test_nvidia.h
  51. 0
      modules/gpulegacy/test/test_main.cpp
  52. 5
      modules/gpulegacy/test/test_nvidia.cpp
  53. 0
      modules/gpulegacy/test/test_precomp.cpp
  54. 2
      modules/gpulegacy/test/test_precomp.hpp
  55. 9
      modules/gpunvidia/CMakeLists.txt
  56. 2
      modules/gpuobjdetect/CMakeLists.txt
  57. 4
      modules/gpuobjdetect/src/precomp.hpp
  58. 2
      modules/gpuvideo/CMakeLists.txt
  59. 4
      modules/gpuvideo/src/precomp.hpp
  60. 2
      samples/gpu/CMakeLists.txt
  61. 2
      samples/gpu/cascadeclassifier_nvidia_api.cpp
  62. 2
      samples/gpu/opticalflow_nvidia_api.cpp

@ -6,7 +6,7 @@ set(the_description "GPU-accelerated Operations on Matrices")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
ocv_define_module(gpuarithm opencv_core OPTIONAL opencv_gpunvidia opencv_imgproc)
ocv_define_module(gpuarithm opencv_core OPTIONAL opencv_gpulegacy opencv_imgproc)
if(HAVE_CUBLAS)
CUDA_ADD_CUBLAS_TO_TARGET(${the_module})

@ -824,7 +824,7 @@ void cv::gpu::integralBuffered(const GpuMat& src, GpuMat& sum, GpuMat& buffer, S
}
else
{
#ifndef HAVE_OPENCV_GPUNVIDIA
#ifndef HAVE_OPENCV_GPULEGACY
throw_no_cuda();
#else
sum.create(src.rows + 1, src.cols + 1, CV_32SC1);
@ -856,7 +856,7 @@ void cv::gpu::integralBuffered(const GpuMat& src, GpuMat& sum, GpuMat& buffer, S
void cv::gpu::sqrIntegral(const GpuMat& src, GpuMat& sqsum, Stream& s)
{
#ifndef HAVE_OPENCV_GPUNVIDIA
#ifndef HAVE_OPENCV_GPULEGACY
(void) src;
(void) sqsum;
(void) s;

@ -53,9 +53,9 @@
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPUNVIDIA
# include "opencv2/gpunvidia.hpp"
# include "opencv2/gpunvidia/private.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy.hpp"
# include "opencv2/gpulegacy/private.hpp"
#endif
#ifdef HAVE_CUBLAS

@ -0,0 +1,9 @@
if(NOT HAVE_CUDA)
ocv_module_disable(gpulegacy)
endif()
set(the_description "GPU-accelerated Computer Vision (legacy)")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wuninitialized)
ocv_define_module(gpulegacy opencv_core OPTIONAL opencv_objdetect)

@ -40,13 +40,13 @@
//
//M*/
#ifndef __OPENCV_GPUNVIDIA_HPP__
#define __OPENCV_GPUNVIDIA_HPP__
#ifndef __OPENCV_GPULEGACY_HPP__
#define __OPENCV_GPULEGACY_HPP__
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpunvidia/NPP_staging.hpp"
#include "opencv2/gpunvidia/NCVPyramid.hpp"
#include "opencv2/gpunvidia/NCVHaarObjectDetection.hpp"
#include "opencv2/gpunvidia/NCVBroxOpticalFlow.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
#include "opencv2/gpulegacy/NPP_staging.hpp"
#include "opencv2/gpulegacy/NCVPyramid.hpp"
#include "opencv2/gpulegacy/NCVHaarObjectDetection.hpp"
#include "opencv2/gpulegacy/NCVBroxOpticalFlow.hpp"
#endif /* __OPENCV_GPUNVIDIA_HPP__ */
#endif /* __OPENCV_GPULEGACY_HPP__ */

@ -60,7 +60,7 @@
#ifndef _ncv_optical_flow_h_
#define _ncv_optical_flow_h_
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
/// \brief Model and solver parameters
struct NCVBroxOpticalFlowDescriptor

@ -59,7 +59,7 @@
#ifndef _ncvhaarobjectdetection_hpp_
#define _ncvhaarobjectdetection_hpp_
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
//==============================================================================

@ -45,7 +45,17 @@
#include <memory>
#include <vector>
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
#include "opencv2/core/cuda/common.hpp"
namespace cv { namespace gpu { namespace cudev
{
namespace pyramid
{
template <typename T> void kernelDownsampleX2_gpu(PtrStepSzb src, PtrStepSzb dst, cudaStream_t stream);
template <typename T> void kernelInterpolateFrom1_gpu(PtrStepSzb src, PtrStepSzb dst, cudaStream_t stream);
}
}}}
#if 0 //def _WIN32

@ -43,7 +43,7 @@
#ifndef _npp_staging_hpp_
#define _npp_staging_hpp_
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
/**

@ -41,8 +41,8 @@
//
//M*/
#ifndef __OPENCV_CORE_GPUNVIDIA_PRIVATE_HPP__
#define __OPENCV_CORE_GPUNVIDIA_PRIVATE_HPP__
#ifndef __OPENCV_CORE_GPULEGACY_PRIVATE_HPP__
#define __OPENCV_CORE_GPULEGACY_PRIVATE_HPP__
#ifndef __OPENCV_BUILD
# error this is a private header which should not be used from outside of the OpenCV library
@ -51,10 +51,10 @@
#include "opencv2/core/gpu_private.hpp"
#ifndef HAVE_CUDA
# error gpunvidia module requires CUDA
# error gpulegacy module requires CUDA
#endif
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
namespace cv { namespace gpu
{
@ -93,4 +93,4 @@ namespace cv { namespace gpu
#define ncvSafeCall(expr) cv::gpu::checkNcvError(expr, __FILE__, __LINE__, "")
#endif
#endif // __OPENCV_CORE_GPUNVIDIA_PRIVATE_HPP__
#endif // __OPENCV_CORE_GPULEGACY_PRIVATE_HPP__

@ -43,7 +43,7 @@
#include <iostream>
#include <vector>
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
//===================================================================
//

@ -43,7 +43,7 @@
#ifndef _ncv_alg_hpp_
#define _ncv_alg_hpp_
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
template <class T>

@ -63,8 +63,8 @@
#include "opencv2/core/cuda/utility.hpp"
#include "opencv2/gpunvidia/NPP_staging.hpp"
#include "opencv2/gpunvidia/NCVBroxOpticalFlow.hpp"
#include "opencv2/gpulegacy/NPP_staging.hpp"
#include "opencv2/gpulegacy/NCVBroxOpticalFlow.hpp"
typedef NCVVectorAlloc<Ncv32f> FloatVector;

@ -68,9 +68,9 @@
# include "opencv2/objdetect.hpp"
#endif
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpunvidia/NPP_staging.hpp"
#include "opencv2/gpunvidia/NCVHaarObjectDetection.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
#include "opencv2/gpulegacy/NPP_staging.hpp"
#include "opencv2/gpulegacy/NCVHaarObjectDetection.hpp"
#include "NCVRuntimeTemplates.hpp"
#include "NCVAlg.hpp"

@ -45,7 +45,7 @@
#include <limits.h>
#include <float.h>
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
template<typename TBase> inline __host__ __device__ TBase _pixMaxVal();
template<> static inline __host__ __device__ Ncv8u _pixMaxVal<Ncv8u>() {return UCHAR_MAX;}

@ -45,8 +45,8 @@
#include "opencv2/core/cuda/common.hpp"
#include "opencv2/gpunvidia/NCV.hpp"
#include "opencv2/gpunvidia/NCVPyramid.hpp"
#include "opencv2/gpulegacy/NCV.hpp"
#include "opencv2/gpulegacy/NCVPyramid.hpp"
#include "NCVAlg.hpp"
#include "NCVPixelOperations.hpp"

@ -48,7 +48,7 @@
#include "opencv2/core/cuda/warp.hpp"
#include "opencv2/core/cuda/warp_shuffle.hpp"
#include "opencv2/gpunvidia/NPP_staging.hpp"
#include "opencv2/gpulegacy/NPP_staging.hpp"
texture<Ncv8u, 1, cudaReadModeElementType> tex8u;

@ -47,7 +47,7 @@
#include <iostream>
#include <algorithm>
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/opencv_modules.hpp"
@ -57,6 +57,6 @@
#endif
#include "opencv2/core/gpu_private.hpp"
#include "opencv2/gpunvidia/private.hpp"
#include "opencv2/gpulegacy/private.hpp"
#endif /* __OPENCV_PRECOMP_H__ */

@ -56,7 +56,7 @@
#include <cuda_runtime.h>
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
struct NCVTestReport

@ -46,7 +46,7 @@
#include <memory>
#include "opencv2/highgui.hpp"
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
template <class T>

@ -140,13 +140,12 @@ GPU_TEST_P(NCV, HypothesesFiltration)
GPU_TEST_P(NCV, Visualization)
{
// this functionality doesn't used in gpu module
bool res = nvidia_NCV_Visualization(_path, nvidiaTestOutputLevel);
ASSERT_TRUE(res);
}
INSTANTIATE_TEST_CASE_P(GPU_NVidia, NPPST, ALL_DEVICES);
INSTANTIATE_TEST_CASE_P(GPU_NVidia, NCV, ALL_DEVICES);
INSTANTIATE_TEST_CASE_P(GPU_Legacy, NPPST, ALL_DEVICES);
INSTANTIATE_TEST_CASE_P(GPU_Legacy, NCV, ALL_DEVICES);
#endif // HAVE_CUDA

@ -69,7 +69,7 @@
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/core/gpumat.hpp"
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/core/gpu_private.hpp"

@ -1,9 +0,0 @@
if(NOT HAVE_CUDA)
ocv_module_disable(gpunvidia)
endif()
set(the_description "GPU-accelerated Computer Vision (HAL module)")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
ocv_define_module(gpunvidia opencv_core OPTIONAL opencv_objdetect)

@ -6,4 +6,4 @@ set(the_description "GPU-accelerated Object Detection")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
ocv_define_module(gpuobjdetect opencv_objdetect opencv_gpuimgproc OPTIONAL opencv_gpunvidia)
ocv_define_module(gpuobjdetect opencv_objdetect opencv_gpuimgproc OPTIONAL opencv_gpulegacy)

@ -53,8 +53,8 @@
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPUNVIDIA
# include "opencv2/gpunvidia/private.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy/private.hpp"
#endif
#endif /* __OPENCV_PRECOMP_H__ */

@ -6,4 +6,4 @@ set(the_description "GPU-accelerated Video Analysis")
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations)
ocv_define_module(gpuvideo opencv_video opencv_legacy opencv_gpufilters opencv_gpuimgproc OPTIONAL opencv_gpunvidia)
ocv_define_module(gpuvideo opencv_video opencv_legacy opencv_gpufilters opencv_gpuimgproc OPTIONAL opencv_gpulegacy)

@ -57,8 +57,8 @@
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPUNVIDIA
# include "opencv2/gpunvidia/private.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy/private.hpp"
#endif
#ifdef HAVE_CUDA

@ -2,7 +2,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope
opencv_ml opencv_video opencv_objdetect opencv_features2d
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
opencv_nonfree opencv_softcascade opencv_superres
opencv_gpucodec opencv_gpuarithm opencv_gpufilters opencv_gpunvidia opencv_gpuimgproc opencv_gpufeatures2d opencv_gpuvideo opencv_gpuobjdetect
opencv_gpucodec opencv_gpuarithm opencv_gpufilters opencv_gpulegacy opencv_gpuimgproc opencv_gpufeatures2d opencv_gpuvideo opencv_gpuobjdetect
opencv_gpucalib3d)
ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})

@ -11,7 +11,7 @@
#include "opencv2/objdetect/objdetect_c.h"
#ifdef HAVE_CUDA
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
#endif
using namespace std;

@ -16,7 +16,7 @@
#include "opencv2/highgui/highgui_c.h"
#ifdef HAVE_CUDA
#include "opencv2/gpunvidia.hpp"
#include "opencv2/gpulegacy.hpp"
#endif
#if !defined(HAVE_CUDA)

Loading…
Cancel
Save