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
069f3d8d
Commit
069f3d8d
authored
Dec 19, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build fixes for GPU module.
parent
2509fa80
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
31 deletions
+34
-31
gpumat.cpp
modules/core/src/gpumat.cpp
+1
-1
CMakeLists.txt
modules/gpu/perf4au/CMakeLists.txt
+17
-14
blenders.cpp
modules/stitching/src/blenders.cpp
+3
-3
matchers.cpp
modules/stitching/src/matchers.cpp
+5
-5
precomp.hpp
modules/stitching/src/precomp.hpp
+1
-1
seam_finders.cpp
modules/stitching/src/seam_finders.cpp
+1
-1
stitcher.cpp
modules/stitching/src/stitcher.cpp
+1
-1
warpers.cpp
modules/stitching/src/warpers.cpp
+1
-1
optical_flow.hpp
modules/videostab/include/opencv2/videostab/optical_flow.hpp
+2
-2
inpainting.cpp
modules/videostab/src/inpainting.cpp
+1
-1
optical_flow.cpp
modules/videostab/src/optical_flow.cpp
+1
-1
No files found.
modules/core/src/gpumat.cpp
View file @
069f3d8d
...
...
@@ -752,5 +752,5 @@ void cv::gpu::error(const char *error_string, const char *file, const int line,
cerr
.
flush
();
}
else
::
cv
::
error
(
::
cv
::
Exception
(
code
,
error_string
,
func
,
file
,
line
)
);
cv
::
error
(
cv
::
Exception
(
code
,
error_string
,
func
,
file
,
line
)
);
}
modules/gpu/perf4au/CMakeLists.txt
View file @
069f3d8d
...
...
@@ -2,26 +2,28 @@ set(PERF4AU_REQUIRED_DEPS opencv_core opencv_imgproc opencv_highgui opencv_video
ocv_check_dependencies
(
${
PERF4AU_REQUIRED_DEPS
}
)
set
(
the_target gpu_perf4au
)
project
(
${
the_target
}
)
if
(
OCV_DEPENDENCIES_FOUND
)
set
(
the_target gpu_perf4au
)
project
(
${
the_target
}
)
ocv_include_modules
(
${
PERF4AU_REQUIRED_DEPS
}
)
ocv_include_modules
(
${
PERF4AU_REQUIRED_DEPS
}
)
if
(
CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS
)
if
(
CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-unused-function"
)
endif
()
endif
()
file
(
GLOB srcs RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp *.h *.hpp
)
add_executable
(
${
the_target
}
${
srcs
}
)
file
(
GLOB srcs RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp *.h *.hpp
)
add_executable
(
${
the_target
}
${
srcs
}
)
target_link_libraries
(
${
the_target
}
${
OPENCV_LINKER_LIBS
}
${
PERF4AU_REQUIRED_DEPS
}
)
target_link_libraries
(
${
the_target
}
${
OPENCV_LINKER_LIBS
}
${
PERF4AU_REQUIRED_DEPS
}
)
if
(
ENABLE_SOLUTION_FOLDERS
)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"tests performance"
)
endif
()
if
(
ENABLE_SOLUTION_FOLDERS
)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"tests performance"
)
endif
()
if
(
WIN32
)
if
(
WIN32
)
if
(
MSVC AND NOT BUILD_SHARED_LIBS
)
set_target_properties
(
${
the_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
set_target_properties
(
${
the_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
endif
()
endif
()
endif
()
endif
()
\ No newline at end of file
modules/stitching/src/blenders.cpp
View file @
069f3d8d
...
...
@@ -189,7 +189,7 @@ Rect FeatherBlender::createWeightMaps(const vector<Mat> &masks, const vector<Poi
MultiBandBlender
::
MultiBandBlender
(
int
try_gpu
,
int
num_bands
,
int
weight_type
)
{
setNumBands
(
num_bands
);
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
can_use_gpu_
=
try_gpu
&&
gpu
::
getCudaEnabledDeviceCount
();
#else
(
void
)
try_gpu
;
...
...
@@ -491,7 +491,7 @@ void createLaplacePyr(const Mat &img, int num_levels, vector<Mat> &pyr)
void
createLaplacePyrGpu
(
const
Mat
&
img
,
int
num_levels
,
vector
<
Mat
>
&
pyr
)
{
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
pyr
.
resize
(
num_levels
+
1
);
vector
<
gpu
::
GpuMat
>
gpu_pyr
(
num_levels
+
1
);
...
...
@@ -531,7 +531,7 @@ void restoreImageFromLaplacePyr(vector<Mat> &pyr)
void
restoreImageFromLaplacePyrGpu
(
vector
<
Mat
>
&
pyr
)
{
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
if
(
pyr
.
empty
())
return
;
...
...
modules/stitching/src/matchers.cpp
View file @
069f3d8d
...
...
@@ -46,7 +46,7 @@ using namespace std;
using
namespace
cv
;
using
namespace
cv
::
detail
;
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
using
namespace
cv
::
gpu
;
#endif
...
...
@@ -129,7 +129,7 @@ private:
float
match_conf_
;
};
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
class
GpuMatcher
:
public
FeaturesMatcher
{
public
:
...
...
@@ -204,7 +204,7 @@ void CpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &feat
LOG
(
"1->2 & 2->1 matches: "
<<
matches_info
.
matches
.
size
()
<<
endl
);
}
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
void
GpuMatcher
::
match
(
const
ImageFeatures
&
features1
,
const
ImageFeatures
&
features2
,
MatchesInfo
&
matches_info
)
{
matches_info
.
matches
.
clear
();
...
...
@@ -432,7 +432,7 @@ void OrbFeaturesFinder::find(const Mat &image, ImageFeatures &features)
}
}
#if defined(HAVE_OPENCV_NONFREE) && defined(HAVE_OPENCV_GPU)
#if defined(HAVE_OPENCV_NONFREE) && defined(HAVE_OPENCV_GPU)
&& !defined(ANDROID)
SurfFeaturesFinderGpu
::
SurfFeaturesFinderGpu
(
double
hess_thresh
,
int
num_octaves
,
int
num_layers
,
int
num_octaves_descr
,
int
num_layers_descr
)
{
...
...
@@ -533,7 +533,7 @@ void FeaturesMatcher::operator ()(const vector<ImageFeatures> &features, vector<
BestOf2NearestMatcher
::
BestOf2NearestMatcher
(
bool
try_use_gpu
,
float
match_conf
,
int
num_matches_thresh1
,
int
num_matches_thresh2
)
{
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
if
(
try_use_gpu
&&
getCudaEnabledDeviceCount
()
>
0
)
impl_
=
new
GpuMatcher
(
match_conf
);
else
...
...
modules/stitching/src/precomp.hpp
View file @
069f3d8d
...
...
@@ -68,7 +68,7 @@
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
#include "opencv2/gpu/gpu.hpp"
#ifdef HAVE_OPENCV_NONFREE
...
...
modules/stitching/src/seam_finders.cpp
View file @
069f3d8d
...
...
@@ -1318,7 +1318,7 @@ void GraphCutSeamFinder::find(const vector<Mat> &src, const vector<Point> &corne
}
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
void
GraphCutSeamFinderGpu
::
find
(
const
vector
<
Mat
>
&
src
,
const
vector
<
Point
>
&
corners
,
vector
<
Mat
>
&
masks
)
{
...
...
modules/stitching/src/stitcher.cpp
View file @
069f3d8d
...
...
@@ -58,7 +58,7 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
stitcher
.
setFeaturesMatcher
(
new
detail
::
BestOf2NearestMatcher
(
try_use_gpu
));
stitcher
.
setBundleAdjuster
(
new
detail
::
BundleAdjusterRay
());
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
if
(
try_use_gpu
&&
gpu
::
getCudaEnabledDeviceCount
()
>
0
)
{
#if defined(HAVE_OPENCV_NONFREE)
...
...
modules/stitching/src/warpers.cpp
View file @
069f3d8d
...
...
@@ -212,7 +212,7 @@ void SphericalWarper::detectResultRoi(Size src_size, Point &dst_tl, Point &dst_b
}
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
Rect
PlaneWarperGpu
::
buildMaps
(
Size
src_size
,
const
Mat
&
K
,
const
Mat
&
R
,
gpu
::
GpuMat
&
xmap
,
gpu
::
GpuMat
&
ymap
)
{
return
buildMaps
(
src_size
,
K
,
R
,
Mat
::
zeros
(
3
,
1
,
CV_32F
),
xmap
,
ymap
);
...
...
modules/videostab/include/opencv2/videostab/optical_flow.hpp
View file @
069f3d8d
...
...
@@ -46,7 +46,7 @@
#include "opencv2/core/core.hpp"
#include "opencv2/opencv_modules.hpp"
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
# include "opencv2/gpu/gpu.hpp"
#endif
...
...
@@ -98,7 +98,7 @@ public:
OutputArray
status
,
OutputArray
errors
);
};
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
class
CV_EXPORTS
DensePyrLkOptFlowEstimatorGpu
:
public
PyrLkOptFlowEstimatorBase
,
public
IDenseOptFlowEstimator
{
...
...
modules/videostab/src/inpainting.cpp
View file @
069f3d8d
...
...
@@ -323,7 +323,7 @@ public:
MotionInpainter
::
MotionInpainter
()
{
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
setOptFlowEstimator
(
new
DensePyrLkOptFlowEstimatorGpu
());
#else
CV_Error
(
CV_StsNotImplemented
,
"Current implementation of MotionInpainter requires GPU"
);
...
...
modules/videostab/src/optical_flow.cpp
View file @
069f3d8d
...
...
@@ -59,7 +59,7 @@ void SparsePyrLkOptFlowEstimator::run(
}
#if
def HAVE_OPENCV_GPU
#if
defined(HAVE_OPENCV_GPU) && !defined(ANDROID)
DensePyrLkOptFlowEstimatorGpu
::
DensePyrLkOptFlowEstimatorGpu
()
{
CV_Assert
(
gpu
::
getCudaEnabledDeviceCount
()
>
0
);
...
...
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