Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d8f73771
Commit
d8f73771
authored
Feb 03, 2014
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turn on CUDA part of nonfree module on Android for non-dynamic build
parent
2bef73c9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
20 deletions
+13
-20
CMakeLists.txt
modules/nonfree/CMakeLists.txt
+3
-4
gpu.hpp
modules/nonfree/include/opencv2/nonfree/gpu.hpp
+1
-7
perf_gpu.cpp
modules/nonfree/perf/perf_gpu.cpp
+3
-1
surf.cu
modules/nonfree/src/cuda/surf.cu
+1
-1
precomp.hpp
modules/nonfree/src/precomp.hpp
+1
-1
surf_gpu.cpp
modules/nonfree/src/surf_gpu.cpp
+1
-5
test_gpu.cpp
modules/nonfree/test/test_gpu.cpp
+3
-1
No files found.
modules/nonfree/CMakeLists.txt
View file @
d8f73771
...
...
@@ -4,9 +4,9 @@ endif()
set
(
the_description
"Functionality with possible limitations on the use"
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef
)
if
(
ENABLE_DYNAMIC_CUDA
)
set
(
HAVE_CUDA FALSE
)
if
(
ENABLE_DYNAMIC_CUDA
)
add_definitions
(
-DDYNAMIC_CUDA_SUPPORT
)
ocv_define_module
(
nonfree opencv_imgproc opencv_features2d opencv_calib3d OPTIONAL opencv_ocl
)
else
()
ocv_define_module
(
nonfree opencv_imgproc opencv_features2d opencv_calib3d OPTIONAL opencv_gpu opencv_ocl
)
endif
()
\ No newline at end of file
endif
()
modules/nonfree/include/opencv2/nonfree/gpu.hpp
View file @
d8f73771
...
...
@@ -43,11 +43,7 @@
#ifndef __OPENCV_NONFREE_GPU_HPP__
#define __OPENCV_NONFREE_GPU_HPP__
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/core/gpumat.hpp"
namespace
cv
{
namespace
gpu
{
...
...
@@ -129,6 +125,4 @@ public:
}
// namespace cv
#endif // defined(HAVE_OPENCV_GPU)
#endif // __OPENCV_NONFREE_GPU_HPP__
modules/nonfree/perf/perf_gpu.cpp
View file @
d8f73771
...
...
@@ -42,7 +42,9 @@
#include "perf_precomp.hpp"
#if defined(HAVE_OPENCV_GPU) && defined(HAVE_CUDA)
#include "cvconfig.h"
#if defined(HAVE_OPENCV_GPU) && defined(HAVE_CUDA) && !defined(DYNAMIC_CUDA_SUPPORT)
#include "opencv2/ts/gpu_perf.hpp"
...
...
modules/nonfree/src/cuda/surf.cu
View file @
d8f73771
...
...
@@ -42,7 +42,7 @@
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPU) && !defined(
ANDROID
)
#if defined(HAVE_OPENCV_GPU) && !defined(
DYNAMIC_CUDA_SUPPORT
)
#include "opencv2/gpu/device/common.hpp"
#include "opencv2/gpu/device/limits.hpp"
...
...
modules/nonfree/src/precomp.hpp
View file @
d8f73771
...
...
@@ -51,7 +51,7 @@
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/internal.hpp"
#if defined(HAVE_OPENCV_GPU) && !defined(
ANDROID
)
#if defined(HAVE_OPENCV_GPU) && !defined(
DYNAMIC_CUDA_SUPPORT
)
#include "opencv2/nonfree/gpu.hpp"
#if defined(HAVE_CUDA)
...
...
modules/nonfree/src/surf_gpu.cpp
View file @
d8f73771
...
...
@@ -42,12 +42,10 @@
#include "precomp.hpp"
#if defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
using
namespace
cv
;
using
namespace
cv
::
gpu
;
#if !defined (HAVE_CUDA)
#if !defined (HAVE_CUDA)
|| !defined(HAVE_OPENCV_GPU) || defined(DYNAMIC_CUDA_SUPPORT)
cv
::
gpu
::
SURF_GPU
::
SURF_GPU
()
{
throw_nogpu
();
}
cv
::
gpu
::
SURF_GPU
::
SURF_GPU
(
double
,
int
,
int
,
bool
,
float
,
bool
)
{
throw_nogpu
();
}
...
...
@@ -421,5 +419,3 @@ void cv::gpu::SURF_GPU::releaseMemory()
}
#endif // !defined (HAVE_CUDA)
#endif // defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
modules/nonfree/test/test_gpu.cpp
View file @
d8f73771
...
...
@@ -42,7 +42,9 @@
#include "test_precomp.hpp"
#if defined(HAVE_OPENCV_GPU) && defined(HAVE_CUDA)
#include "cvconfig.h"
#if defined(HAVE_OPENCV_GPU) && defined(HAVE_CUDA) && !defined(DYNAMIC_CUDA_SUPPORT)
using
namespace
cvtest
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment