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
564f6098
Commit
564f6098
authored
Apr 18, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed samples compilation
parent
787e56ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
CMakeLists.txt
samples/cpp/CMakeLists.txt
+12
-11
bgfg_segm.cpp
samples/gpu/bgfg_segm.cpp
+6
-0
cascadeclassifier_nvidia_api.cpp
samples/gpu/cascadeclassifier_nvidia_api.cpp
+1
-0
hog.cpp
samples/gpu/hog.cpp
+1
-0
No files found.
samples/cpp/CMakeLists.txt
View file @
564f6098
...
...
@@ -16,16 +16,17 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/include"
)
#for opencv.hpp
ocv_include_modules
(
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
if
(
HAVE_opencv_gpu
)
if
(
HAVE_opencv_gpuoptflow
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuoptflow/include"
)
endif
()
if
(
HAVE_opencv_gpuimgproc
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuimgproc/include"
)
endif
()
if
(
HAVE_opencv_gpuarithm
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuarithm/include"
)
endif
()
if
(
HAVE_opencv_gpufilters
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpufilters/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuwarping/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuimgproc/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpufeatures2d/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuoptflow/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpubgsegm/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpustereo/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpu/include"
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS
)
...
...
@@ -51,8 +52,8 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
add_executable
(
${
the_target
}
${
srcs
}
)
target_link_libraries
(
${
the_target
}
${
OPENCV_LINKER_LIBS
}
${
OPENCV_CPP_SAMPLES_REQUIRED_DEPS
}
)
if
(
HAVE_opencv_gpu
)
target_link_libraries
(
${
the_target
}
opencv_gpu
)
if
(
"
${
srcs
}
"
MATCHES
"gpu/"
)
target_link_libraries
(
${
the_target
}
opencv_gpu
arithm opencv_gpufilters
)
endif
()
set_target_properties
(
${
the_target
}
PROPERTIES
...
...
@@ -78,7 +79,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_list_filterout
(
cpp_samples Qt_sample
)
endif
()
if
(
NOT HAVE_opencv_gpu
)
if
(
NOT HAVE_opencv_gpu
arithm OR NOT HAVE_opencv_gpufilters
)
ocv_list_filterout
(
cpp_samples
"/gpu/"
)
endif
()
...
...
samples/gpu/bgfg_segm.cpp
View file @
564f6098
...
...
@@ -6,6 +6,12 @@
#include "opencv2/gpu.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_NONFREE
# include "opencv2/nonfree/gpu.hpp"
#endif
using
namespace
std
;
using
namespace
cv
;
using
namespace
cv
::
gpu
;
...
...
samples/gpu/cascadeclassifier_nvidia_api.cpp
View file @
564f6098
...
...
@@ -8,6 +8,7 @@
#include <cstdio>
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/objdetect/objdetect_c.h"
#ifdef HAVE_CUDA
...
...
samples/gpu/hog.cpp
View file @
564f6098
...
...
@@ -7,6 +7,7 @@
#include <opencv2/core/utility.hpp>
#include "opencv2/gpu.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/objdetect.hpp"
using
namespace
std
;
using
namespace
cv
;
...
...
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