Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
86a67372
Commit
86a67372
authored
Jul 11, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1687 from alalek:fix_cuda_nonfree_build
parents
1e096c6c
d3b03808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
surf.cuda.cpp
modules/xfeatures2d/src/surf.cuda.cpp
+19
-19
No files found.
modules/xfeatures2d/src/surf.cuda.cpp
View file @
86a67372
...
...
@@ -47,24 +47,7 @@
using
namespace
cv
;
using
namespace
cv
::
cuda
;
#if (!defined (HAVE_CUDA) || !defined (HAVE_OPENCV_CUDAARITHM))
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
()
{
throw_no_cuda
();
}
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
(
double
,
int
,
int
,
bool
,
float
,
bool
)
{
throw_no_cuda
();
}
int
cv
::
cuda
::
SURF_CUDA
::
descriptorSize
()
const
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
uploadKeypoints
(
const
std
::
vector
<
KeyPoint
>&
,
GpuMat
&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadKeypoints
(
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadDescriptors
(
const
GpuMat
&
,
std
::
vector
<
float
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
GpuMat
&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
GpuMat
&
,
GpuMat
&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
,
GpuMat
&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
,
std
::
vector
<
float
>&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
releaseMemory
()
{
throw_no_cuda
();
}
#else // !defined (HAVE_CUDA)
#if (!defined (OPENCV_ENABLE_NONFREE))
#ifndef OPENCV_ENABLE_NONFREE
#define throw_no_nonfree CV_Error(Error::StsNotImplemented, \
"This algorithm is patented and is excluded in this configuration; " \
"Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library");
...
...
@@ -72,6 +55,7 @@ void cv::cuda::SURF_CUDA::releaseMemory() { throw_no_cuda(); }
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
()
{
throw_no_nonfree
}
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
(
double
,
int
,
int
,
bool
,
float
,
bool
)
{
throw_no_nonfree
}
int
cv
::
cuda
::
SURF_CUDA
::
descriptorSize
()
const
{
throw_no_nonfree
}
int
cv
::
cuda
::
SURF_CUDA
::
defaultNorm
()
const
{
throw_no_nonfree
}
void
cv
::
cuda
::
SURF_CUDA
::
uploadKeypoints
(
const
std
::
vector
<
KeyPoint
>&
,
GpuMat
&
)
{
throw_no_nonfree
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadKeypoints
(
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
)
{
throw_no_nonfree
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadDescriptors
(
const
GpuMat
&
,
std
::
vector
<
float
>&
)
{
throw_no_nonfree
}
...
...
@@ -82,6 +66,23 @@ void cv::cuda::SURF_CUDA::operator()(const GpuMat&, const GpuMat&, std::vector<K
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
,
std
::
vector
<
float
>&
,
bool
)
{
throw_no_nonfree
}
void
cv
::
cuda
::
SURF_CUDA
::
releaseMemory
()
{
throw_no_nonfree
}
#elif (!defined (HAVE_CUDA) || !defined (HAVE_OPENCV_CUDAARITHM))
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
()
{
throw_no_cuda
();
}
cv
::
cuda
::
SURF_CUDA
::
SURF_CUDA
(
double
,
int
,
int
,
bool
,
float
,
bool
)
{
throw_no_cuda
();
}
int
cv
::
cuda
::
SURF_CUDA
::
descriptorSize
()
const
{
throw_no_cuda
();
}
int
cv
::
cuda
::
SURF_CUDA
::
defaultNorm
()
const
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
uploadKeypoints
(
const
std
::
vector
<
KeyPoint
>&
,
GpuMat
&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadKeypoints
(
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
downloadDescriptors
(
const
GpuMat
&
,
std
::
vector
<
float
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
GpuMat
&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
GpuMat
&
,
GpuMat
&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
,
GpuMat
&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
operator
()(
const
GpuMat
&
,
const
GpuMat
&
,
std
::
vector
<
KeyPoint
>&
,
std
::
vector
<
float
>&
,
bool
)
{
throw_no_cuda
();
}
void
cv
::
cuda
::
SURF_CUDA
::
releaseMemory
()
{
throw_no_cuda
();
}
#else // OPENCV_ENABLE_NONFREE
namespace
cv
{
namespace
cuda
{
namespace
device
...
...
@@ -450,7 +451,6 @@ void cv::cuda::SURF_CUDA::releaseMemory()
maxPosBuffer
.
release
();
}
#endif // !defined (HAVE_CUDA)
#endif // !defined (OPENCV_ENABLE_NONFREE)
#endif
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