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
91a1a71d
Commit
91a1a71d
authored
Oct 08, 2012
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation under Ubuntu without CUDA
parent
a310e2f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
internal_shared.hpp
modules/gpu/src/cuda/internal_shared.hpp
+1
-5
denoising.cpp
modules/gpu/src/denoising.cpp
+1
-2
precomp.cpp
modules/gpu/src/precomp.cpp
+5
-4
precomp.hpp
modules/gpu/src/precomp.hpp
+10
-1
No files found.
modules/gpu/src/cuda/internal_shared.hpp
View file @
91a1a71d
...
...
@@ -60,11 +60,7 @@ namespace cv { namespace gpu
BORDER_REFLECT_GPU
,
BORDER_WRAP_GPU
};
// Converts CPU border extrapolation mode into GPU internal analogue.
// Returns true if the GPU analogue exists, false otherwise.
bool
tryConvertToGpuBorderType
(
int
cpuBorderType
,
int
&
gpuBorderType
);
class
NppStreamHandler
{
public
:
...
...
modules/gpu/src/denoising.cpp
View file @
91a1a71d
...
...
@@ -49,10 +49,9 @@ using namespace cv::gpu;
void
cv
::
gpu
::
bilateralFilter
(
const
GpuMat
&
,
GpuMat
&
,
int
,
float
,
float
,
int
,
Stream
&
)
{
throw_nogpu
();
}
void
cv
::
gpu
::
nonLocalMeans
(
const
GpuMat
&
,
GpuMat
&
,
float
,
int
,
int
,
int
,
Stream
&
)
{
throw_nogpu
();
}
void
cv
::
gpu
::
fastNlMeansDenoising
(
const
GpuMat
&
,
GpuMat
&
,
float
,
int
,
int
,
Stream
&
)
{
throw_nogpu
();
}
void
cv
::
gpu
::
FastNonLocalMeansDenoising
::
simpleMethod
(
const
GpuMat
&
,
GpuMat
&
,
float
,
int
,
int
,
Stream
&
)
{
throw_nogpu
();
}
void
cv
::
gpu
::
FastNonLocalMeansDenoising
::
labMethod
(
const
GpuMat
&
,
GpuMat
,
float
,
float
,
int
,
int
,
Stream
&
)
{
throw_nogpu
();
}
void
cv
::
gpu
::
FastNonLocalMeansDenoising
::
labMethod
(
const
GpuMat
&
,
GpuMat
&
,
float
,
float
,
int
,
int
,
Stream
&
)
{
throw_nogpu
();
}
#else
...
...
modules/gpu/src/precomp.cpp
View file @
91a1a71d
...
...
@@ -41,10 +41,12 @@
#include "precomp.hpp"
bool
cv
::
gpu
::
tryConvertToGpuBorderType
(
int
cpuBorderType
,
int
&
gpuBorderType
)
{
#if !defined (HAVE_CUDA)
(
void
)
cpuBorderType
;
(
void
)
gpuBorderType
;
#else
switch
(
cpuBorderType
)
{
case
cv
:
:
BORDER_REFLECT101
:
...
...
@@ -65,10 +67,9 @@ bool cv::gpu::tryConvertToGpuBorderType(int cpuBorderType, int& gpuBorderType)
default
:
return
false
;
};
#endif
return
false
;
}
/* End of file. */
modules/gpu/src/precomp.hpp
View file @
91a1a71d
...
...
@@ -123,9 +123,18 @@
static
inline
void
throw_nogpu
()
{
CV_Error
(
CV_StsNotImplemented
,
"The called functionality is disabled for current build or platform"
);
}
#else
/* defined(HAVE_CUDA) */
static
inline
void
throw_nogpu
()
{
CV_Error
(
CV_GpuNotSupported
,
"The library is compiled without GPU support"
);
}
#endif
/* defined(HAVE_CUDA) */
namespace
cv
{
namespace
gpu
{
// Converts CPU border extrapolation mode into GPU internal analogue.
// Returns true if the GPU analogue exists, false otherwise.
bool
tryConvertToGpuBorderType
(
int
cpuBorderType
,
int
&
gpuBorderType
);
}}
#endif
/* __OPENCV_PRECOMP_H__ */
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